diff options
Diffstat (limited to 'rc/base/ruby.kak')
| -rw-r--r-- | rc/base/ruby.kak | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/base/ruby.kak b/rc/base/ruby.kak index 494385a2..0b1f9ff0 100644 --- a/rc/base/ruby.kak +++ b/rc/base/ruby.kak @@ -132,7 +132,7 @@ def -hidden ruby-indent-on-new-line %{ def -hidden ruby-insert-on-new-line %{ eval -no-hooks -draft -itersel %{ # copy _#_ comment prefix and following white spaces - try %{ exec -draft k <a-x> s ^ \h * \K \# \h * <ret> y gh j P } + try %{ exec -draft k <a-x> s '^\h*\K#\h*' <ret> y gh j P } # wisely add end structure eval -save-regs x %{ try %{ exec -draft k <a-x> s ^ \h + <ret> \" x y } catch %{ reg x '' } |
