From 297dc3f9976719014d717f65ca794995ce0f4a5b Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Tue, 3 Jul 2018 21:12:36 -0400 Subject: 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 --- src/nvim/screen.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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) */ -- cgit