]> granicus.if.org Git - vim/commitdiff
patch 8.1.0839: when using VTP wrong colors after a color scheme change v8.1.0839
authorBram Moolenaar <Bram@vim.org>
Mon, 28 Jan 2019 19:19:05 +0000 (20:19 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 28 Jan 2019 19:19:05 +0000 (20:19 +0100)
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)

src/ex_docmd.c
src/version.c

index dcfdcd4543949d2158d00c9e2bacab15c5998493..1646a22139bbd8b1986b62d44f95cc163c8afc49 100644 (file)
@@ -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
index 7d63c554d748878e16155ce7898fa9dc97229216..b69344ce18ff79d91121809af30b10ca8ae8d1ba 100644 (file)
@@ -783,6 +783,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    839,
 /**/
     838,
 /**/