Collapse 'try %{ execute-keys ... }' blocks to one line
This commit is contained in:
parent
73f5f32385
commit
0063e4c4f5
|
@ -181,13 +181,9 @@ 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 %{
|
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-&>'
|
|
||||||
}
|
|
||||||
# Remove empty line indent
|
# Remove empty line indent
|
||||||
try %{
|
try %{ execute-keys -draft 'k<a-x>s^\h+$<ret>d' }
|
||||||
execute-keys -draft 'k<a-x>s^\h+$<ret>d'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user