fixed hooks running when entered character was not alone on the line
This commit is contained in:
parent
391e58625f
commit
f6d5b23122
|
@ -81,12 +81,12 @@ define-command -hidden kak-indent-on-new-line %{
|
||||||
|
|
||||||
define-command -hidden kak-indent-on-closing-matching %~
|
define-command -hidden kak-indent-on-closing-matching %~
|
||||||
# align to opening matching brace when alone on a line
|
# align to opening matching brace when alone on a line
|
||||||
try %= execute-keys -draft -itersel <a-h><a-k>\h*\Q %val{hook_param} \E$<ret> mGi s \A|.\z<ret> 1<a-&> =
|
try %= execute-keys -draft -itersel <a-h><a-k>^\h*\Q %val{hook_param} \E$<ret> mGi s \A|.\z<ret> 1<a-&> =
|
||||||
~
|
~
|
||||||
|
|
||||||
define-command -hidden kak-indent-on-closing-char %{
|
define-command -hidden kak-indent-on-closing-char %{
|
||||||
# align to opening matching character when alone on a line
|
# align to opening matching character when alone on a line
|
||||||
try %{ execute-keys -draft -itersel <a-h><a-k>\h*\Q %val{hook_param} \E$<ret>gi<a-f> %val{hook_param} <a-T>%<a-k>\w*\Q %val{hook_param} \E$<ret> s \A|.\z<ret> gi 1<a-&> }
|
try %{ execute-keys -draft -itersel <a-h><a-k>^\h*\Q %val{hook_param} \E$<ret>gi<a-f> %val{hook_param} <a-T>%<a-k>\w*\Q %val{hook_param} \E$<ret> s \A|.\z<ret> gi 1<a-&> }
|
||||||
}
|
}
|
||||||
|
|
||||||
# Initialization
|
# Initialization
|
||||||
|
|
Loading…
Reference in New Issue
Block a user