1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2019-01-28 20:19:05 +01:00
parent dec01206b2
commit f58d81a187
2 changed files with 11 additions and 0 deletions

View 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

View File

@@ -783,6 +783,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
839,
/**/
838,
/**/