Fix deindentation in sh.kak
This commit is contained in:
parent
085fcc2088
commit
4a49868f2c
|
@ -182,6 +182,8 @@ define-command -hidden sh-indent-on-new-line %[
|
|||
try %= execute-keys -draft <space> k <a-x> <a-k> (\s|^)\{$ <ret> j <a-gt> =
|
||||
# deindent closing }
|
||||
try %= execute-keys -draft <space> k <a-x> <a-k> ^\s*\}$ <ret> <a-lt> j K <a-&> =
|
||||
# deindent closing } when after cursor
|
||||
try %= execute-keys -draft <a-x> <a-k> ^\h*\} <ret> gh / \} <ret> m <a-S> 1<a-&> =
|
||||
|
||||
]
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue
Block a user