mirror of
https://github.com/preservim/vim-indent-guides.git
synced 2025-11-08 09:53:48 -05:00
fix: Enable use in nested mappings by replacing :redir (#152)
Co-authored-by: Sergey Vlasov <sergey@vlasov.me>
This commit is contained in:
@@ -253,10 +253,7 @@ endfunction
|
||||
" Returns: 'Normal xxx guifg=#323232 guibg=#ffffff'
|
||||
"
|
||||
function! indent_guides#capture_highlight(group_name) abort
|
||||
redir => l:output
|
||||
exe 'silent hi ' . a:group_name
|
||||
redir END
|
||||
|
||||
let l:output = execute('hi ' . a:group_name, 'silent')
|
||||
let l:output = substitute(l:output, '\n', '', '')
|
||||
return l:output
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user