From e84ebfdfab5adc394a8fa723b4e1f1ef79e68b26 Mon Sep 17 00:00:00 2001 From: John Isom Date: Sat, 1 Aug 2020 10:16:48 -0600 Subject: [PATCH] Replace ') ' with '1' --- rc/filetype/ruby.kak | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rc/filetype/ruby.kak b/rc/filetype/ruby.kak index df3c496a..c10bfb64 100644 --- a/rc/filetype/ruby.kak +++ b/rc/filetype/ruby.kak @@ -139,10 +139,10 @@ define-command -hidden ruby-trim-indent %{ define-command -hidden ruby-indent-on-char %{ evaluate-commands -no-hooks -draft -itersel %{ # align middle and end structures to start - try %{ execute-keys -draft ^ \h * (else|elsif) $ ^ \h * (if) ) } - try %{ execute-keys -draft ^ \h * (when) $ ^ \h * (case) ) } - try %{ execute-keys -draft ^ \h * (rescue) $ ^ \h * (begin) ) } - try %{ execute-keys -draft ^ \h * (end) $ ^ \h * (begin|case|class|def|for|if|module|unless|until|while) ) } + try %{ execute-keys -draft ^ \h * (else|elsif) $ ^ \h * (if) 1 } + try %{ execute-keys -draft ^ \h * (when) $ ^ \h * (case) 1 } + try %{ execute-keys -draft ^ \h * (rescue) $ ^ \h * (begin) 1 } + try %{ execute-keys -draft ^ \h * (end) $ ^ \h * (begin|case|class|def|for|if|module|unless|until|while) 1 } } }