From d168c7500213e3e9887629ed4572a258999e8daa Mon Sep 17 00:00:00 2001 From: Nicholas Ochiel Date: Sat, 21 Oct 2017 21:00:56 +0300 Subject: [PATCH] vim modeline regex should accept not one but "at least one" whitespace. --- rc/extra/modeline.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } } }