From 9c957167fadb470a91a8b9405376c73fbfa07f2d Mon Sep 17 00:00:00 2001 From: John Isom Date: Wed, 29 Jul 2020 15:14:35 -0600 Subject: [PATCH] Update deindentation in c-family.kak --- rc/filetype/c-family.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/filetype/c-family.kak b/rc/filetype/c-family.kak index 5817e4b3..aaa99e10 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*$ hm 1 > + try %< execute-keys -draft ^\h*[})] gh / [})] m 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 %<