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