diff --git a/rc/filetype/c-family.kak b/rc/filetype/c-family.kak index 31ad1ccc..5817e4b3 100644 --- a/rc/filetype/c-family.kak +++ b/rc/filetype/c-family.kak @@ -99,7 +99,7 @@ define-command -hidden c-family-indent-on-newline %< evaluate-commands -draft -i K s \belse\b\h*(?://[^\n]+)?\n([^\n]*\n){2}\z \ 1 > # deindent closing brace(s) when after cursor - try %< execute-keys -draft ^\h*[})]+\h*$ > + try %< execute-keys -draft ^\h*[})]+\h*$ hm 1 > # align to the opening parenthesis or opening brace (whichever is first) # on a previous line if its followed by text on the same line try %< evaluate-commands -draft %<