Don't completely remove empty lines when fixing indents

This commit is contained in:
Frank LENORMAND 2016-07-15 10:29:19 +03:00
parent 4204f6dae6
commit 78c6b7c03d

View File

@ -37,7 +37,7 @@ hook global BufSetOption mimetype=text/x-objc %{
def -hidden _c-family-trim-autoindent %[ eval -draft -itersel %[ def -hidden _c-family-trim-autoindent %[ eval -draft -itersel %[
## remove the line if it's empty when leaving the insert mode ## remove the line if it's empty when leaving the insert mode
try %[ exec <a-x> <a-k>^\h+$<ret> d ] try %[ exec <a-x> 1s^(\h+)$<ret> d ]
] ] ] ]
def -hidden _c-family-indent-on-newline %[ eval -draft -itersel %[ def -hidden _c-family-indent-on-newline %[ eval -draft -itersel %[