From 900450204934e2d17e31054a029e9d63d373a3d6 Mon Sep 17 00:00:00 2001 From: John Isom Date: Mon, 27 Jul 2020 12:19:00 -0600 Subject: [PATCH] Update go brace deindenting to handle bad indentation edge case --- rc/filetype/go.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/filetype/go.kak b/rc/filetype/go.kak index d947646f..8899a8c1 100644 --- a/rc/filetype/go.kak +++ b/rc/filetype/go.kak @@ -90,7 +90,7 @@ define-command -hidden go-indent-on-new-line %~ # indent after if|else|while|for try %[ execute-keys -draft )MB \A(if|else|while|for)\h*\(.*\)\h*\n\h*\n?\z s \A|.\z 11 ] # deindent closing brace(s) when after cursor - try %[ execute-keys -draft ^\h*[})]+\h*$ ] + try %[ execute-keys -draft ^\h*[})]+\h*$ hm 1 ] = ~