mirror of
https://github.com/preservim/vim-indent-guides.git
synced 2025-11-08 18:03:46 -05:00
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:
@@ -100,7 +100,7 @@ endfunction
|
|||||||
"
|
"
|
||||||
function! indent_guides#highlight_colors() abort
|
function! indent_guides#highlight_colors() abort
|
||||||
if s:auto_colors
|
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()
|
call indent_guides#gui_highlight_colors()
|
||||||
else
|
else
|
||||||
call indent_guides#basic_highlight_colors()
|
call indent_guides#basic_highlight_colors()
|
||||||
|
|||||||
Reference in New Issue
Block a user