diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-28 20:19:05 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-28 20:19:05 +0100 |
commit | f58d81a18752cb9bf899b3f7328fc489cf6558e8 (patch) | |
tree | 518114134fa73be12103216dffb1954da5899011 /src/ex_docmd.c | |
parent | dec01206b224fd0fba66e4da20a602e941d74d04 (diff) | |
download | vim-git-f58d81a18752cb9bf899b3f7328fc489cf6558e8.tar.gz |
patch 8.1.0839: when using VTP wrong colors after a color scheme changev8.1.0839
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)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index dcfdcd454..1646a2213 100644 --- 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 |