diff options
| author | Dan Rosén <dan.rosen@gu.se> | 2016-12-29 01:38:49 +0100 |
|---|---|---|
| committer | Dan Rosén <dan.rosen@gu.se> | 2016-12-29 01:39:02 +0100 |
| commit | 5ddc28eaade3985d0d59597f2fd834e692b03a07 (patch) | |
| tree | c7faaaf24610760392cb814c57776028e7e24236 /rc/base/ruby.kak | |
| parent | 83651e4998805ac38d67b2aa8844f529e3067a01 (diff) | |
Fix comment-leader auto-insertion
Fixes #1074
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 42af2fd7..565c5c85 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 x s ^ \h * \K \# \h * <ret> y j p } + try %{ exec -draft k x s ^ \h * \K \# \h * <ret> y gh j P } # wisely add end structure eval -save-regs x %{ try %{ exec -draft k x s ^ \h + <ret> \" x y } catch %{ reg x '' } |
