0
0
mirror of https://github.com/vim/vim.git synced 2025-07-24 10:45:12 -04:00

patch 8.1.1451: CTRL-L does not clear screen with a popup window

Problem:    CTRL-L does not clear screen with a popup window.
Solution:   Do not change the type to NOT_VALID.  Redraw all windows.
            (closes #4471)
This commit is contained in:
Bram Moolenaar 2019-06-02 15:56:15 +02:00
parent 399d898ac1
commit ca2f7037c1
2 changed files with 8 additions and 1 deletions

View File

@ -613,7 +613,12 @@ update_screen(int type_arg)
#ifdef FEAT_TEXT_PROP #ifdef FEAT_TEXT_PROP
// TODO: avoid redrawing everything when there is a popup window. // TODO: avoid redrawing everything when there is a popup window.
if (popup_any_visible()) if (popup_any_visible())
type = NOT_VALID; {
if (type < NOT_VALID)
type = NOT_VALID;
FOR_ALL_WINDOWS(wp)
wp->w_redr_type = NOT_VALID;
}
#endif #endif
updating_screen = TRUE; updating_screen = TRUE;

View File

@ -767,6 +767,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1451,
/**/ /**/
1450, 1450,
/**/ /**/