diff --git a/rc/filetype/ruby.kak b/rc/filetype/ruby.kak index feeb6347..88844ded 100644 --- a/rc/filetype/ruby.kak +++ b/rc/filetype/ruby.kak @@ -173,7 +173,7 @@ define-command -hidden ruby-indent-on-new-line %{ define-command -hidden ruby-insert-on-new-line %[ evaluate-commands -no-hooks -draft -itersel %[ # copy _#_ comment prefix and following white spaces - try %{ exec -draft k s ^\h*\K#\h* y jgi P } + try %{ execute-keys -draft k s ^\h*\K#\h* y jgi P } # wisely add end structure evaluate-commands -save-regs x %[ try %{ execute-keys -draft k s ^ \h + \" x y } catch %{ reg x '' }