1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-28 09:07:19 +03:00

Fix Lua comment delimiter insertion (see #1584)

This commit is contained in:
exitium 2017-09-22 18:17:19 -04:00
parent b64b295db4
commit a4ba9b339e

View File

@ -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 k<a-x>s^\h*\K--\h*<ret>yjp }
try %{ exec -draft k<a-x>s^\h*\K--\h*<ret>yghjP }
# wisely add end structure
eval -save-regs x %{
try %{ exec -draft k<a-x>s^\h+<ret>"xy } catch %{ reg x '' }