Skip to content

Commit f58d81a

Browse files
committed
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)
1 parent dec0120 commit f58d81a

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

src/ex_docmd.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7211,6 +7211,15 @@ ex_colorscheme(exarg_T *eap)
72117211
}
72127212
else if (load_colors(eap->arg) == FAIL)
72137213
semsg(_("E185: Cannot find color scheme '%s'"), eap->arg);
7214+
7215+
#ifdef FEAT_VTP
7216+
else if (has_vtp_working())
7217+
{
7218+
// background color change requires clear + redraw
7219+
update_screen(CLEAR);
7220+
redrawcmd();
7221+
}
7222+
#endif
72147223
}
72157224

72167225
static void

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,8 @@ static char *(features[]) =
783783

784784
static int included_patches[] =
785785
{ /* Add new patch number below this line */
786+
/**/
787+
839,
786788
/**/
787789
838,
788790
/**/

0 commit comments

Comments
 (0)