changeset 9320:b6472fd9f5ba v7.4.1942

commit https://github.com/vim/vim/commit/d18f672fc9477f3c0cb7cc4ce8d9237ed825c612 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 17 13:18:49 2016 +0200 patch 7.4.1942 Problem: Background is not drawn properly when 'termguicolors' is set. Solution: Check cterm_normal_bg_color. (Jacob Niehus, closes https://github.com/vim/vim/issues/805)
author Christian Brabandt <cb@256bit.org>
date Fri, 17 Jun 2016 13:30:05 +0200
parents 1472ed67c36f
children 3bca76f5e3a7
files src/screen.c src/version.c
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)
-#endif
-		|| cterm_normal_bg_color == 0 || *T_UT != NUL));
+		|| (p_tgc && cterm_normal_bg_gui_color == (long_u)INVALCOLOR)
+		|| (!p_tgc && cterm_normal_bg_color == 0)
+#else
+		|| cterm_normal_bg_color == 0
+#endif
+		|| *T_UT != NUL));
 }
 
 /*
--- a/src/version.c
+++ b/src/version.c
@@ -754,6 +754,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1942,
+/**/
     1941,
 /**/
     1940,