mirror of
https://github.com/vim/vim.git
synced 2025-10-06 05:44:14 -04:00
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)
This commit is contained in:
@@ -2154,8 +2154,9 @@ update_popups(void (*win_update)(win_T *wp))
|
|||||||
wp->w_winrow += top_off;
|
wp->w_winrow += top_off;
|
||||||
wp->w_wincol += left_off;
|
wp->w_wincol += left_off;
|
||||||
|
|
||||||
// Draw the popup text.
|
// Draw the popup text, unless it's off screen.
|
||||||
win_update(wp);
|
if (wp->w_winrow < screen_Rows && wp->w_wincol < screen_Columns)
|
||||||
|
win_update(wp);
|
||||||
|
|
||||||
wp->w_winrow -= top_off;
|
wp->w_winrow -= top_off;
|
||||||
wp->w_wincol -= left_off;
|
wp->w_wincol -= left_off;
|
||||||
|
@@ -777,6 +777,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 */
|
||||||
|
/**/
|
||||||
|
1596,
|
||||||
/**/
|
/**/
|
||||||
1595,
|
1595,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user