From c5cd88554f1e0b2e9ff08d9a0748238dd8340ce1 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 1 May 2018 15:47:38 +0200 Subject: patch 8.0.1783: cannot use 256 colors in a MS-Windows console Problem: Cannot use 256 colors in a MS-Windows console. Solution: Add 256 color support. (Nobuhiro Takasaki, closes #2821) --- src/misc1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/misc1.c') diff --git a/src/misc1.c b/src/misc1.c index de79c8e81..6c77f4b0d 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -3723,7 +3723,7 @@ vim_beep( /* No restore color information, refresh the screen. */ if (has_vtp_working() != 0 # ifdef FEAT_TERMGUICOLORS - && p_tgc + && (p_tgc || (!p_tgc && t_colors >= 256)) # endif ) { -- cgit v1.2.1