Skip to content

Commit a1e1390

Browse files
authored
fix: Use basic colors when termguicolors is off (preservim#155)
indent_guides#gui_highlight_colors only sets guifg/guibg and we don't want that when termguicolors is off. Fixes: 3a4f7a6 ("feat: Enable adaption of colors from termguicolors (preservim#143)")
1 parent 9a106c7 commit a1e1390

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/indent_guides.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ endfunction
100100
"
101101
function! indent_guides#highlight_colors() abort
102102
if s:auto_colors
103-
if has('gui_running') || has('nvim') || has('termguicolors')
103+
if has('gui_running') || has('nvim') || (has('termguicolors') && &termguicolors)
104104
call indent_guides#gui_highlight_colors()
105105
else
106106
call indent_guides#basic_highlight_colors()

0 commit comments

Comments
 (0)