0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.2.3801: if a terminal shows in two windows, only one is redrawn

Problem:    If a terminal shows in two windows, only one is redrawn.
Solution:   Reset the dirty row range only after redrawing all windows.
            (closes #9341)
This commit is contained in:
Bram Moolenaar
2021-12-13 21:59:09 +00:00
parent 6840a0ffe8
commit 3194e5bf87
5 changed files with 53 additions and 2 deletions

View File

@@ -342,6 +342,13 @@ update_screen(int type_arg)
update_popups(win_update);
#endif
#ifdef FEAT_TERMINAL
FOR_ALL_WINDOWS(wp)
// If this window contains a terminal, after redrawing all windows, the
// dirty row range can be reset.
term_did_update_window(wp);
#endif
after_updating_screen(TRUE);
// Clear or redraw the command line. Done last, because scrolling may