diff --git a/rc/filetype/lua.kak b/rc/filetype/lua.kak index 05684c14..891a8713 100644 --- a/rc/filetype/lua.kak +++ b/rc/filetype/lua.kak @@ -112,7 +112,7 @@ define-command -hidden lua-indent-on-new-line %{ define-command -hidden lua-insert-on-new-line %[ evaluate-commands -no-hooks -draft -itersel %[ # copy -- comment prefix and following white spaces - try %{ execute-keys -draft ks^\h*\K--\h* y gh j P } + try %{ execute-keys -draft ks^\h*\K--\h* y gh j P } # wisely add end structure evaluate-commands -save-regs x %[ try %{ execute-keys -draft ks^\h+"xy } catch %{ reg x '' } # Save previous line indent in register x