diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-07-03 21:12:36 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-07-03 21:14:00 -0400 |
commit | 297dc3f9976719014d717f65ca794995ce0f4a5b (patch) | |
tree | 2ebfababcc5c63a3eed01b4cd12cfbc76c98bd95 | |
parent | a8071354e18261d6ad761b1f804bfe65094f69f5 (diff) | |
download | rneovim-297dc3f9976719014d717f65ca794995ce0f4a5b.tar.gz rneovim-297dc3f9976719014d717f65ca794995ce0f4a5b.tar.bz2 rneovim-297dc3f9976719014d717f65ca794995ce0f4a5b.zip |
vim-patch:8.0.0686: extra redraw when using CTRL-L in second window
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().
https://github.com/vim/vim/commit/9f5f7bf4d5f757ef885acf74ce03c25429a328aa
-rw-r--r-- | src/nvim/screen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 4c011e466b..ce5c994526 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -337,6 +337,8 @@ void update_screen(int type) screenclear(); // will reset clear_cmdline cmdline_screen_cleared(); // clear external cmdline state 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) */ |