From 353bef3dba03c0b699ed41a04a66d215e4965d29 Mon Sep 17 00:00:00 2001 From: Nate Kane Date: Mon, 24 Jan 2011 22:23:32 +1000 Subject: [PATCH] Improved Windows support --- autoload/indent_guides.vim | 3 +++ doc/indent_guides.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/autoload/indent_guides.vim b/autoload/indent_guides.vim index e10c880..2ac36d2 100644 --- a/autoload/indent_guides.vim +++ b/autoload/indent_guides.vim @@ -172,6 +172,9 @@ function! indent_guides#init_script_vars() let s:guide_size = indent_guides#calculate_guide_size() 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:]\+', "", "") + " shortcuts to the global variables - this makes the code easier to read let s:debug = g:indent_guides_debug let s:indent_levels = g:indent_guides_indent_levels diff --git a/doc/indent_guides.txt b/doc/indent_guides.txt index 9ccb0b2..aa43255 100644 --- a/doc/indent_guides.txt +++ b/doc/indent_guides.txt @@ -214,6 +214,7 @@ Bug reports, feedback, suggestions etc are welcomed. 1.4~ * Added the new plugin option g:|indent_guides_enable_on_vim_startup|. + * Improved Windows support. 1.3~ * Changed the default value of g:|indent_guides_color_change_percent| to 10.