Wrap all 'indent-on-new-line' commands in 'evaluate-commands -no-hook -draft -itersel'
This commit is contained in:
parent
b23a85e747
commit
73f5f32385
|
@ -179,13 +179,15 @@ evaluate-commands %sh[
|
||||||
# ‾‾‾‾‾‾‾‾
|
# ‾‾‾‾‾‾‾‾
|
||||||
|
|
||||||
define-command -hidden crystal-indent-on-new-line %{
|
define-command -hidden crystal-indent-on-new-line %{
|
||||||
# Copy previous line indent
|
evaluate-commands -no-hooks -draft -itersel %{
|
||||||
try %{
|
# Copy previous line indent
|
||||||
execute-keys -draft 'K<a-&>'
|
try %{
|
||||||
}
|
execute-keys -draft 'K<a-&>'
|
||||||
# Remove empty line indent
|
}
|
||||||
try %{
|
# Remove empty line indent
|
||||||
execute-keys -draft 'k<a-x>s^\h+$<ret>d'
|
try %{
|
||||||
|
execute-keys -draft 'k<a-x>s^\h+$<ret>d'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user