remove redundant whitespace trim
This commit is contained in:
parent
1898528421
commit
318fb02bb9
|
@ -97,13 +97,11 @@ provide-module hare %§
|
||||||
# indent after lines ending with { or (
|
# indent after lines ending with { or (
|
||||||
try %[ execute-keys -draft k<a-x> <a-k> [{(]\h*$ <ret> j i<tab> ]
|
try %[ execute-keys -draft k<a-x> <a-k> [{(]\h*$ <ret> j i<tab> ]
|
||||||
# cleanup trailing white spaces on the previous line
|
# cleanup trailing white spaces on the previous line
|
||||||
try %{ execute-keys -draft k<a-x> s \h+$ <ret>d }
|
execute-keys -draft k :hare-trim-indent <ret>
|
||||||
# indent after a switch's case/default statements
|
# indent after a switch's case/default statements
|
||||||
try %[ execute-keys -draft k<a-x> <a-k> ^\h*(case|default).*:$ <ret> j<a-gt> ]
|
try %[ execute-keys -draft k<a-x> <a-k> ^\h*(case|default).*:$ <ret> j<a-gt> ]
|
||||||
# deindent closing brace(s) when after cursor
|
# deindent closing brace(s) when after cursor
|
||||||
try %[ execute-keys -draft <a-x> <a-k> ^\h*[})] <ret> gh / [})] <ret> m <a-S> 1<a-&> ]
|
try %[ execute-keys -draft <a-x> <a-k> ^\h*[})] <ret> gh / [})] <ret> m <a-S> 1<a-&> ]
|
||||||
# remove trailing whitespace on the above line
|
|
||||||
execute-keys -draft k :hare-trim-indent <ret>
|
|
||||||
} }
|
} }
|
||||||
|
|
||||||
define-command -hidden hare-insert-on-new-line %{ evaluate-commands -draft -itersel %{
|
define-command -hidden hare-insert-on-new-line %{ evaluate-commands -draft -itersel %{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user