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:
parent
b64b295db4
commit
a4ba9b339e
@ -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 '' }
|
||||
|
Loading…
Reference in New Issue
Block a user