From 58c0bff6f50b773e7511e94c05ccabe2d460b666 Mon Sep 17 00:00:00 2001 From: manga_osyo Date: Wed, 27 Aug 2014 17:43:40 +0900 Subject: [PATCH] Fix redir highlight. --- autoload/brightest.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/brightest.vim b/autoload/brightest.vim index 2e58d5e..d9c5d64 100644 --- a/autoload/brightest.vim +++ b/autoload/brightest.vim @@ -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