From ec618357de5d81d19395c92430014faa02186ced Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 14 Jan 2017 14:47:57 +0000 Subject: [PATCH] Fix modeline.kak declaring the same command twice --- rc/extra/modeline.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/extra/modeline.kak b/rc/extra/modeline.kak index 00d23715..d48661b7 100644 --- a/rc/extra/modeline.kak +++ b/rc/extra/modeline.kak @@ -11,7 +11,7 @@ # and the end of the buffer decl int modelines 5 -def -hidden modeline-parse %{ +def -hidden modeline-parse-impl %{ %sh{ # Translate a vim option into the corresponding kakoune one function translate_opt_vim { @@ -103,6 +103,6 @@ def modeline-parse -docstring "Read and interpret vi-format modelines at the beg try %{ eval -draft %{ exec \%s\`|.\' %opt{modelines}k %opt{modelines}X \ s^[^\s]+?\s(vim?|kak(oune)?):\s?[^\n]+ - eval -draft -itersel modeline-parse + eval -draft -itersel modeline-parse-impl } } }