Remove extraneous -itersel flag from deindent closing brace after cursor
This commit is contained in:
parent
d4fee6b197
commit
b40a53d26c
|
@ -101,7 +101,7 @@ define-command -hidden kak-indent-on-new-line %~
|
|||
# indent after line ending with %\w*[^\s\w]
|
||||
try %{ execute-keys -draft k <a-x> <a-k> \%\w*[^\s\w]$ <ret> j <a-gt> }
|
||||
# deindent closing brace when after cursor
|
||||
try %_ execute-keys -draft -itersel <a-x> <a-k>^\h*[>)}\]]\h*$<ret> hm <a-S> 1<a-&> _
|
||||
try %_ execute-keys -draft <a-x> <a-k>^\h*[>)}\]]\h*$<ret> hm <a-S> 1<a-&> _
|
||||
# deindent closing char(s)
|
||||
try %{ execute-keys -draft -itersel <a-x> <a-k>^\h*([^\s\w])\h*$<ret> h <a-?><c-r>1<ret> <a-T>% <a-k>\w*<c-r>1$<ret> <a-S> 1<a-&> }
|
||||
=
|
||||
|
|
Loading…
Reference in New Issue
Block a user