diff --git a/rc/base/ruby.kak b/rc/base/ruby.kak index e6f7fab9..7abc7e83 100644 --- a/rc/base/ruby.kak +++ b/rc/base/ruby.kak @@ -107,7 +107,7 @@ def ruby-alternative-file -docstring 'Jump to the alternate file (implementation }} def -hidden _ruby_filter_around_selections %{ - eval -draft -itersel %{ + eval -no-hooks -draft -itersel %{ exec # remove trailing white spaces try %{ exec -draft s \h + $ d } @@ -115,7 +115,7 @@ def -hidden _ruby_filter_around_selections %{ } def -hidden _ruby_indent_on_char %{ - eval -draft -itersel %{ + eval -no-hooks -draft -itersel %{ # align middle and end structures to start try %{ exec -draft ^ \h * (else|elsif) $ ^ \h * (if) s \A | \Z \' } try %{ exec -draft ^ \h * (when) $ ^ \h * (case) s \A | \Z \' } @@ -125,7 +125,7 @@ def -hidden _ruby_indent_on_char %{ } def -hidden _ruby_indent_on_new_line %{ - eval -draft -itersel %{ + eval -no-hooks -draft -itersel %{ # preserve previous line indent try %{ exec -draft K } # filter previous line @@ -136,7 +136,7 @@ def -hidden _ruby_indent_on_new_line %{ } def -hidden _ruby_insert_on_new_line %{ - eval -draft -itersel %{ + eval -no-hooks -draft -itersel %{ # copy _#_ comment prefix and following white spaces try %{ exec -draft k x s ^ \h * \K \# \h * y j p } # wisely add end structure