mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-16 07:23:49 -05:00
improve s:hi in the test for lightline#ink
This commit is contained in:
@@ -10,9 +10,9 @@ endfunction
|
||||
|
||||
function! s:hi(name)
|
||||
redir => hi
|
||||
silent! exec 'hi ' . a:name
|
||||
silent! exec 'hi' a:name
|
||||
redir END
|
||||
return hi
|
||||
return substitute(join(split(hi, "\n"), ''), ' \+', ' ', 'g')
|
||||
endfunction
|
||||
|
||||
function! s:suite.link()
|
||||
|
||||
Reference in New Issue
Block a user