From 318fb02bb9d62d45a95993d34d7dd7d59eddd67b Mon Sep 17 00:00:00 2001 From: Jon Eskin Date: Thu, 9 Jun 2022 04:38:10 -0400 Subject: [PATCH] remove redundant whitespace trim --- rc/filetype/hare.kak | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rc/filetype/hare.kak b/rc/filetype/hare.kak index 31007067..9b97532e 100644 --- a/rc/filetype/hare.kak +++ b/rc/filetype/hare.kak @@ -97,13 +97,11 @@ provide-module hare %ยง # indent after lines ending with { or ( try %[ execute-keys -draft k [{(]\h*$ j i ] # cleanup trailing white spaces on the previous line - try %{ execute-keys -draft k s \h+$ d } + execute-keys -draft k :hare-trim-indent # indent after a switch's case/default statements try %[ execute-keys -draft k ^\h*(case|default).*:$ j ] # deindent closing brace(s) when after cursor try %[ execute-keys -draft ^\h*[})] gh / [})] m 1 ] - # remove trailing whitespace on the above line - execute-keys -draft k :hare-trim-indent } } define-command -hidden hare-insert-on-new-line %{ evaluate-commands -draft -itersel %{