1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-28 01:00:28 +03:00

Wrap all 'indent-on-new-line' commands in 'evaluate-commands -no-hook -draft -itersel'

This commit is contained in:
John Isom 2020-08-01 09:53:51 -06:00
parent b23a85e747
commit 73f5f32385

View File

@ -179,13 +179,15 @@ evaluate-commands %sh[
# ‾‾‾‾‾‾‾‾
define-command -hidden crystal-indent-on-new-line %{
# Copy previous line indent
try %{
execute-keys -draft 'K<a-&>'
}
# Remove empty line indent
try %{
execute-keys -draft 'k<a-x>s^\h+$<ret>d'
evaluate-commands -no-hooks -draft -itersel %{
# Copy previous line indent
try %{
execute-keys -draft 'K<a-&>'
}
# Remove empty line indent
try %{
execute-keys -draft 'k<a-x>s^\h+$<ret>d'
}
}
}