# HG changeset patch # User Bram Moolenaar # Date 1561504517 -7200 # Node ID f4c6c1bc5e41925d21b00d8ec4a4130c710651fd # Parent 1bd075bf6f8b20cd70c18cf636802d2f0c771ab0 patch 8.1.1596: when resizing the screen may draw popup in wrong position commit https://github.com/vim/vim/commit/c2a43165004f944a909428e80700130745c08ed0 Author: Bram Moolenaar Date: Wed Jun 26 01:03:53 2019 +0200 patch 8.1.1596: when resizing the screen may draw popup in wrong position Problem: When resizing the screen may draw popup in wrong position. (Masato Nishihata) Solution: Check the popup is not outside of the screen. (fixes #4592) diff --git a/src/popupwin.c b/src/popupwin.c --- a/src/popupwin.c +++ b/src/popupwin.c @@ -2154,8 +2154,9 @@ update_popups(void (*win_update)(win_T * wp->w_winrow += top_off; wp->w_wincol += left_off; - // Draw the popup text. - win_update(wp); + // Draw the popup text, unless it's off screen. + if (wp->w_winrow < screen_Rows && wp->w_wincol < screen_Columns) + win_update(wp); wp->w_winrow -= top_off; wp->w_wincol -= left_off; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -778,6 +778,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1596, +/**/ 1595, /**/ 1594,