Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion autoload/indent_guides.vim
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function! indent_guides#init_script_vars()
let s:hi_normal = indent_guides#capture_highlight('Normal')

" remove 'font=<value>' 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: ]\+', "", "")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be too greedy because other segments are space separated.
A proper match (if such a thing is even still needed at all) wourd need to
account for whatever quoting or escaping is used in this value. Since
I don't have a working test case I can't say what that needs to be.


" shortcuts to the global variables - this makes the code easier to read
let s:debug = g:indent_guides_debug
Expand Down