changeset 15663:61448894376e v8.1.0839

patch 8.1.0839: when using VTP wrong colors after a color scheme change commit https://github.com/vim/vim/commit/f58d81a18752cb9bf899b3f7328fc489cf6558e8 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 28 20:19:05 2019 +0100 patch 8.1.0839: when using VTP wrong colors after a color scheme change Problem: When using VTP wrong colors after a color scheme change. Solution: When VTP is active always clear after a color scheme change. (Nobuhiro Takasaki, closes #3872)
author Bram Moolenaar <Bram@vim.org>
date Mon, 28 Jan 2019 20:30:05 +0100
parents d1ea80ed704b
children 128d7a4ccd54
files src/ex_docmd.c src/version.c
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -7211,6 +7211,15 @@ ex_colorscheme(exarg_T *eap)
     }
     else if (load_colors(eap->arg) == FAIL)
 	semsg(_("E185: Cannot find color scheme '%s'"), eap->arg);
+
+#ifdef FEAT_VTP
+    else if (has_vtp_working())
+    {
+	// background color change requires clear + redraw
+	update_screen(CLEAR);
+	redrawcmd();
+    }
+#endif
 }
 
     static void
--- a/src/version.c
+++ b/src/version.c
@@ -784,6 +784,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    839,
+/**/
     838,
 /**/
     837,