Skip to content

Commit 353bef3

Browse files
committed
Improved Windows support
1 parent 3c86647 commit 353bef3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

autoload/indent_guides.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ function! indent_guides#init_script_vars()
172172
let s:guide_size = indent_guides#calculate_guide_size()
173173
let s:hi_normal = indent_guides#capture_highlight('Normal')
174174

175+
" remove 'font=<value>' from the s:hi_normal string (only seems to happen on Vim startup in Windows)
176+
let s:hi_normal = substitute(s:hi_normal, ' font=[A-Za-z0-9:]\+', "", "")
177+
175178
" shortcuts to the global variables - this makes the code easier to read
176179
let s:debug = g:indent_guides_debug
177180
let s:indent_levels = g:indent_guides_indent_levels

doc/indent_guides.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ Bug reports, feedback, suggestions etc are welcomed.
214214

215215
1.4~
216216
* Added the new plugin option g:|indent_guides_enable_on_vim_startup|.
217+
* Improved Windows support.
217218

218219
1.3~
219220
* Changed the default value of g:|indent_guides_color_change_percent| to 10.

0 commit comments

Comments
 (0)