diff --git a/rc/base/lua.kak b/rc/base/lua.kak index 0853e711..5666fc8a 100644 --- a/rc/base/lua.kak +++ b/rc/base/lua.kak @@ -80,7 +80,7 @@ def -hidden lua-indent-on-new-line %{ def -hidden lua-insert-on-new-line %{ eval -no-hooks -draft -itersel %{ # copy -- comment prefix and following white spaces - try %{ exec -draft ks^\h*\K--\h*yjp } + try %{ exec -draft ks^\h*\K--\h*yghjP } # wisely add end structure eval -save-regs x %{ try %{ exec -draft ks^\h+"xy } catch %{ reg x '' }