From d18f672fc9477f3c0cb7cc4ce8d9237ed825c612 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 17 Jun 2016 13:18:49 +0200 Subject: [PATCH] patch 7.4.1942 Problem: Background is not drawn properly when 'termguicolors' is set. Solution: Check cterm_normal_bg_color. (Jacob Niehus, closes #805) --- src/screen.c | 7 +++++-- src/version.c | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/screen.c b/src/screen.c index f55dba68f..684401cd2 100644 --- a/src/screen.c +++ b/src/screen.c @@ -8967,9 +8967,12 @@ can_clear(char_u *p) || gui.in_use #endif #ifdef FEAT_TERMGUICOLORS - || (p_tgc && cterm_normal_bg_gui_color != (long_u)INVALCOLOR) + || (p_tgc && cterm_normal_bg_gui_color == (long_u)INVALCOLOR) + || (!p_tgc && cterm_normal_bg_color == 0) +#else + || cterm_normal_bg_color == 0 #endif - || cterm_normal_bg_color == 0 || *T_UT != NUL)); + || *T_UT != NUL)); } /* diff --git a/src/version.c b/src/version.c index 9dfb18f38..3f41a9e0a 100644 --- a/src/version.c +++ b/src/version.c @@ -753,6 +753,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1942, /**/ 1941, /**/ -- 2.50.1