Use proper regex when fetching SignColumn colors.

The previous regex would incorrectly match null characters in some cases.
This commit is contained in:
Chris Faulkner
2014-05-21 20:47:33 -07:00
parent 208e301903
commit 833b8a439f

View File

@@ -95,8 +95,8 @@ function! highlight#get_background_colors(group)
return highlight#get_background_colors(link_matches[1]) return highlight#get_background_colors(link_matches[1])
endif endif
let ctermbg = highlight#match_highlight(highlight, 'ctermbg=\(\S\+\)') let ctermbg = highlight#match_highlight(highlight, 'ctermbg=\([0-9A-Za-z]\+\)')
let guibg = highlight#match_highlight(highlight, 'guibg=\(\S\+\)') let guibg = highlight#match_highlight(highlight, 'guibg=\([#0-9A-Za-z]\+\)')
return [guibg, ctermbg] return [guibg, ctermbg]
endfunction endfunction