Fix modeline.kak declaring the same command twice
This commit is contained in:
parent
e7e72747ed
commit
ec618357de
|
@ -11,7 +11,7 @@
|
||||||
# and the end of the buffer
|
# and the end of the buffer
|
||||||
decl int modelines 5
|
decl int modelines 5
|
||||||
|
|
||||||
def -hidden modeline-parse %{
|
def -hidden modeline-parse-impl %{
|
||||||
%sh{
|
%sh{
|
||||||
# Translate a vim option into the corresponding kakoune one
|
# Translate a vim option into the corresponding kakoune one
|
||||||
function translate_opt_vim {
|
function translate_opt_vim {
|
||||||
|
@ -103,6 +103,6 @@ def modeline-parse -docstring "Read and interpret vi-format modelines at the beg
|
||||||
try %{ eval -draft %{
|
try %{ eval -draft %{
|
||||||
exec \%s\`|.\'<ret> %opt{modelines}k <a-x> %opt{modelines}X \
|
exec \%s\`|.\'<ret> %opt{modelines}k <a-x> %opt{modelines}X \
|
||||||
s^[^\s]+?\s(vim?|kak(oune)?):\s?[^\n]+<ret>
|
s^[^\s]+?\s(vim?|kak(oune)?):\s?[^\n]+<ret>
|
||||||
eval -draft -itersel modeline-parse
|
eval -draft -itersel modeline-parse-impl
|
||||||
} }
|
} }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user