mirror of
https://github.com/preservim/vim-indent-guides.git
synced 2025-11-09 02:13:46 -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'
|
" Returns: 'Normal xxx guifg=#323232 guibg=#ffffff'
|
||||||
"
|
"
|
||||||
function! indent_guides#capture_highlight(group_name) abort
|
function! indent_guides#capture_highlight(group_name) abort
|
||||||
redir => l:output
|
let l:output = execute('hi ' . a:group_name, 'silent')
|
||||||
exe 'silent hi ' . a:group_name
|
|
||||||
redir END
|
|
||||||
|
|
||||||
let l:output = substitute(l:output, '\n', '', '')
|
let l:output = substitute(l:output, '\n', '', '')
|
||||||
return l:output
|
return l:output
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user