diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-06-28 20:45:26 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-06-28 20:45:26 +0200 |
commit | 9f5f7bf4d5f757ef885acf74ce03c25429a328aa (patch) | |
tree | e74e9668d83edd7be6f56de2f9864f182e584496 | |
parent | e6bf655bc4de1b7f4586e1f5c2fc4978141c3aa3 (diff) | |
download | vim-git-9f5f7bf4d5f757ef885acf74ce03c25429a328aa.tar.gz |
patch 8.0.0686: extra redraw when using CTRL-L in second windowv8.0.0686
Problem: When typing CTRL-L in a window that's not the first one, another
redraw will happen later. (Christian Brabandt)
Solution: Reset must_redraw after calling screenclear().
-rw-r--r-- | src/screen.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c index 3b281a894..f047534e8 100644 --- a/src/screen.c +++ b/src/screen.c @@ -648,6 +648,8 @@ update_screen(int type_arg) { screenclear(); /* will reset clear_cmdline */ type = NOT_VALID; + /* must_redraw may be set indirectly, avoid another redraw later */ + must_redraw = 0; } if (clear_cmdline) /* going to clear cmdline (done below) */ diff --git a/src/version.c b/src/version.c index d595256fa..e659f8cfa 100644 --- a/src/version.c +++ b/src/version.c @@ -765,6 +765,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 686, +/**/ 685, /**/ 684, |