sh.kak: fix don't always deindent around "done"

Analogous to #3613
This commit is contained in:
Johannes Altmanninger 2020-07-25 19:59:40 +02:00
parent c2516f02f6
commit 35f27030c3

View File

@ -108,7 +108,7 @@ define-command -hidden sh-indent-on-new-line %[
# indent after do
try %{ execute-keys -draft <space> k <a-x> <a-k> do$ <ret> j <a-gt> }
# deindent after done
try %{ execute-keys -draft <space> k <a-x> <a-k> done$ <ret> <a-lt> j K <a-&> }
try %{ execute-keys -draft <space> k <a-x> <a-k> done$ <ret> K <a-&> j <a-lt> j K <a-&> }
# Indent if/then/else syntax, e.g.:
# if [ $foo = $bar ]; then