summaryrefslogtreecommitdiffstats
path: root/src/misc1.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-05-01 15:47:38 +0200
committerBram Moolenaar <Bram@vim.org>2018-05-01 15:47:38 +0200
commitc5cd88554f1e0b2e9ff08d9a0748238dd8340ce1 (patch)
tree68ebe38b30631520ddd3f0b93dc870624c66f0ae /src/misc1.c
parentd76ce852668635d81778cedacc2d3f021ed4e475 (diff)
patch 8.0.1783: cannot use 256 colors in a MS-Windows consolev8.0.1783
Problem: Cannot use 256 colors in a MS-Windows console. Solution: Add 256 color support. (Nobuhiro Takasaki, closes #2821)
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc1.c b/src/misc1.c
index de79c8e815..6c77f4b0d2 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
)
{