summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-06-17 13:18:49 +0200
committerBram Moolenaar <Bram@vim.org>2016-06-17 13:18:49 +0200
commitd18f672fc9477f3c0cb7cc4ce8d9237ed825c612 (patch)
tree8f61eb789e56825c9a2a31dadc8132888ba8e4ee /src/screen.c
parenta02a551e18209423584fcb923e93c6be18f3aa45 (diff)
downloadvim-git-d18f672fc9477f3c0cb7cc4ce8d9237ed825c612.tar.gz
patch 7.4.1942v7.4.1942
Problem: Background is not drawn properly when 'termguicolors' is set. Solution: Check cterm_normal_bg_color. (Jacob Niehus, closes #805)
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c7
1 files changed, 5 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));
}
/*