1
0
forked from aniani/vim

patch 9.1.1060: Vim always enables 'termguicolors' in a terminal

Problem:  Vim always enables 'termguicolors' in a terminal, even
          when not wanted (after v9.1.1054)
Solution: Respect `:set notermguicolors` in vimrc file

fixes: #16538
fixes: #16539
closes: #16540

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt
2025-01-31 16:13:14 +01:00
parent bfb4eea786
commit d7f5854fcc
6 changed files with 67 additions and 21 deletions

View File

@@ -4296,6 +4296,7 @@ did_set_termguicolors(optset_T *args UNUSED)
# endif
!has_vtp_working())
{
p_tgc_set = TRUE;
p_tgc = 0;
return e_24_bit_colors_are_not_supported_on_this_environment;
}
@@ -4320,6 +4321,7 @@ did_set_termguicolors(optset_T *args UNUSED)
term_update_palette_all();
term_update_wincolor_all();
# endif
p_tgc_set = TRUE;
return NULL;
}