diff --git a/rc/extra/modeline.kak b/rc/extra/modeline.kak index 83af7d75..2902eb77 100644 --- a/rc/extra/modeline.kak +++ b/rc/extra/modeline.kak @@ -96,7 +96,7 @@ def -hidden modeline-parse-impl %{ def modeline-parse -docstring "Read and interpret vi-format modelines at the beginning/end of the buffer" %{ try %{ eval -draft %{ exec \%s\`|.\' %opt{modelines}k %opt{modelines}X \ - s^[^\s]*?\s(vim?|kak(oune)?):\s?[^\n]+ + s^\S*?\s+?(vim?|kak(oune)?):\s?[^\n]+ eval -draft -itersel modeline-parse-impl } } }