Merge remote-tracking branch 'krobelus/done-deindent'

This commit is contained in:
Maxime Coste 2020-07-30 21:07:03 +10:00
commit e4c27df5f5

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