0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.0.0317: when updating the whole screen a popup may not be redrawn

Problem:    When updating the whole screen a popup may not be redrawn.
Solution:   Mark the screen and windows for redraw also when not clearing.
            Also mark popup windows for redraw.
This commit is contained in:
Bram Moolenaar
2022-08-29 13:44:28 +01:00
parent f73e5ba56f
commit b13d3405ff
7 changed files with 48 additions and 7 deletions

View File

@@ -173,13 +173,19 @@ update_screen(int type_arg)
if (type != UPD_CLEAR)
{
if (msg_scrolled > Rows - 5) // redrawing is faster
{
type = UPD_NOT_VALID;
redraw_as_cleared();
}
else
{
check_for_delay(FALSE);
if (screen_ins_lines(0, 0, msg_scrolled, (int)Rows, 0, NULL)
== FAIL)
{
type = UPD_NOT_VALID;
redraw_as_cleared();
}
FOR_ALL_WINDOWS(wp)
{
if (wp->w_winrow < msg_scrolled)