fix: Use basic colors when termguicolors is off (#155)

indent_guides#gui_highlight_colors only sets guifg/guibg and we don't
want that when termguicolors is off.

Fixes: 3a4f7a6b99 ("feat: Enable adaption of colors from termguicolors (#143)")
This commit is contained in:
Tomáš Janoušek
2023-03-18 19:37:41 +00:00
committed by GitHub
parent 9a106c73f6
commit a1e1390c01

View File

@@ -100,7 +100,7 @@ endfunction
"
function! indent_guides#highlight_colors() abort
if s:auto_colors
if has('gui_running') || has('nvim') || has('termguicolors')
if has('gui_running') || has('nvim') || (has('termguicolors') && &termguicolors)
call indent_guides#gui_highlight_colors()
else
call indent_guides#basic_highlight_colors()