diff --git a/rc/cpp.kak b/rc/cpp.kak index bc82e7f8..c19dfcd6 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,}) yP } + try %{ exec -draft k s ^\h*\K(/{2,}) yjglp } # indent after visibility specifier try %[ exec -draft k ^\h*(public|private|protected):\h*$ j ] # indent after if|else|while|for