diff src/misc1.c @ 13823:d0d8125ba692 v8.0.1783

patch 8.0.1783: cannot use 256 colors in a MS-Windows console commit https://github.com/vim/vim/commit/c5cd88554f1e0b2e9ff08d9a0748238dd8340ce1 Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 1 15:47:38 2018 +0200 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 https://github.com/vim/vim/issues/2821)
author Christian Brabandt <cb@256bit.org>
date Tue, 01 May 2018 16:00:07 +0200
parents cc21507ee4b1
children e4d5726e1678
line wrap: on
line diff
--- 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
 			)
 		    {