From d762024da8baa49c01afba6f9ad81f6405e085f8 Mon Sep 17 00:00:00 2001 From: Iazel Date: Sat, 28 Jun 2014 00:11:17 +0200 Subject: [PATCH] Fix s:hi_normal initialization Some schema has `font=Monospaced 10`, but because the regexp doesn't include a space, the 10 will hang around and break the color name -> hex conversion. Just added a space. --- autoload/indent_guides.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/indent_guides.vim b/autoload/indent_guides.vim index 95a9552..1559026 100644 --- a/autoload/indent_guides.vim +++ b/autoload/indent_guides.vim @@ -185,7 +185,7 @@ function! indent_guides#init_script_vars() let s:hi_normal = indent_guides#capture_highlight('Normal') " remove 'font=' from the s:hi_normal string (only seems to happen on Vim startup in Windows) - let s:hi_normal = substitute(s:hi_normal, ' font=[A-Za-z0-9:]\+', "", "") + let s:hi_normal = substitute(s:hi_normal, ' font=[A-Za-z0-9: ]\+', "", "") " shortcuts to the global variables - this makes the code easier to read let s:debug = g:indent_guides_debug