From 78c6b7c03daaed018ecd1a39deb7b1c6b6a75de5 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Fri, 15 Jul 2016 10:29:19 +0300 Subject: [PATCH] Don't completely remove empty lines when fixing indents --- rc/core/c-family.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/core/c-family.kak b/rc/core/c-family.kak index c28f112b..5d3a384b 100644 --- a/rc/core/c-family.kak +++ b/rc/core/c-family.kak @@ -37,7 +37,7 @@ hook global BufSetOption mimetype=text/x-objc %{ def -hidden _c-family-trim-autoindent %[ eval -draft -itersel %[ ## remove the line if it's empty when leaving the insert mode - try %[ exec ^\h+$ d ] + try %[ exec 1s^(\h+)$ d ] ] ] def -hidden _c-family-indent-on-newline %[ eval -draft -itersel %[