From 1bbc88953eecf618c129c1c0941cff6387493ab5 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Wed, 22 Jul 2020 22:27:12 +0800 Subject: [PATCH] fix shell fi always deindenting after newline Always align fi to the line before before deindenting it ``` ... test fi%( ) ``` always deindent fi on `o` --- rc/filetype/sh.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/filetype/sh.kak b/rc/filetype/sh.kak index 35076d9c..fff26562 100644 --- a/rc/filetype/sh.kak +++ b/rc/filetype/sh.kak @@ -128,7 +128,7 @@ define-command -hidden sh-indent-on-new-line %[ # indent after then try %{ execute-keys -draft k then$ j } # deindent after fi - try %{ execute-keys -draft k fi$ j K } + try %{ execute-keys -draft k fi$ K j j K } # deindent and reindent after else - deindent the else, then back # down and return to the previous indent level. try %{ execute-keys -draft k else$ j }