From 289cb0485eac6edf712bc99d226745c58b24d96a Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 30 Aug 2014 14:56:01 +0100 Subject: [PATCH] cpp.kak: fix copying of comments to next line --- rc/cpp.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/cpp.kak b/rc/cpp.kak index 0208a08d..b53f0787 100644 --- a/rc/cpp.kak +++ b/rc/cpp.kak @@ -19,7 +19,7 @@ def -hidden _cpp_indent_on_new_line %~ # align to previous statement start when previous line closed a parenthesis # try %{ exec -draft \)M\`\(.*\)[^\n()]*\n\h*\n?\'s\`|.\'1 } # copy // comments prefix - try %{ exec -draft k s ^\h*\K(/{2,}) yjglp } + try %{ exec -draft \;k s ^\h*\K/{2,} yP } # indent after visibility specifier try %[ exec -draft k ^\h*(public|private|protected):\h*$ j ] # indent after if|else|while|for