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 %{
|
||||
evaluate-commands -no-hooks -draft -itersel %{
|
||||
# Copy previous line indent
|
||||
try %{
|
||||
execute-keys -draft 'K<a-&>'
|
||||
}
|
||||
try %{ execute-keys -draft 'K<a-&>' }
|
||||
# Remove empty line indent
|
||||
try %{
|
||||
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