Fix redir highlight.

This commit is contained in:
manga_osyo
2014-08-27 17:43:40 +09:00
parent 81556d369e
commit 58c0bff6f5

View File

@@ -161,6 +161,7 @@ function! brightest#parse_cursorline_highlight_group(group)
redir => hl
silent execute "highlight" a:group
redir END
let hl = substitute(hl, '\n', '', 'g')
let hl = matchstr(hl, '.*xxx\zs.*')
let guibg = synIDattr(synIDtrans(hlID("CursorLine")), "bg", "gui")
if guibg != "" && guibg != -1