Replace manual whitespace trimming to use function created in prev. commit
This commit is contained in:
parent
62ac42bb23
commit
ee842da85a
|
@ -190,8 +190,8 @@ define-command -hidden crystal-indent-on-new-line %{
|
|||
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 }
|
||||
# Remove previos line's trailing spaces
|
||||
try %{ execute-keys -draft k :ruby-trim-indent <ret> }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user