Skip to content

Commit d96c818

Browse files
alerquenoscript
andauthored
fix: Enable use in nested mappings by replacing :redir (#152)
Co-authored-by: Sergey Vlasov <[email protected]>
1 parent 3a4f7a6 commit d96c818

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

autoload/indent_guides.vim

+1-4
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,7 @@ endfunction
253253
" Returns: 'Normal xxx guifg=#323232 guibg=#ffffff'
254254
"
255255
function! indent_guides#capture_highlight(group_name) abort
256-
redir => l:output
257-
exe 'silent hi ' . a:group_name
258-
redir END
259-
256+
let l:output = execute('hi ' . a:group_name, 'silent')
260257
let l:output = substitute(l:output, '\n', '', '')
261258
return l:output
262259
endfunction

0 commit comments

Comments
 (0)