From ee842da85afc01a804890ee922ba0d8d0d31f34f Mon Sep 17 00:00:00 2001 From: John Isom Date: Sat, 1 Aug 2020 09:59:53 -0600 Subject: [PATCH] Replace manual whitespace trimming to use function created in prev. commit --- rc/filetype/crystal.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/filetype/crystal.kak b/rc/filetype/crystal.kak index 3a895045..3f30e85a 100644 --- a/rc/filetype/crystal.kak +++ b/rc/filetype/crystal.kak @@ -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 } - # Remove empty line indent - try %{ execute-keys -draft k s ^\h+$ d } + # Remove previos line's trailing spaces + try %{ execute-keys -draft k :ruby-trim-indent } } }