mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 8.1.1442: popup windows not considered when the Vim window is resized
Problem: Popup windows not considered when the Vim window is resized. (Ben Jackson) Solution: Reallocate the w_lines structure. (closes #4467)
This commit is contained in:
27
src/screen.c
27
src/screen.c
@@ -8892,6 +8892,15 @@ retry:
|
|||||||
win_free_lsize(wp);
|
win_free_lsize(wp);
|
||||||
if (aucmd_win != NULL)
|
if (aucmd_win != NULL)
|
||||||
win_free_lsize(aucmd_win);
|
win_free_lsize(aucmd_win);
|
||||||
|
#ifdef FEAT_TEXT_PROP
|
||||||
|
// global popup windows
|
||||||
|
for (wp = first_popupwin; wp != NULL; wp = wp->w_next)
|
||||||
|
win_free_lsize(wp);
|
||||||
|
// tab-local popup windows
|
||||||
|
FOR_ALL_TABPAGES(tp)
|
||||||
|
for (wp = tp->tp_first_popupwin; wp != NULL; wp = wp->w_next)
|
||||||
|
win_free_lsize(wp);
|
||||||
|
#endif
|
||||||
|
|
||||||
new_ScreenLines = LALLOC_MULT(schar_T, (Rows + 1) * Columns);
|
new_ScreenLines = LALLOC_MULT(schar_T, (Rows + 1) * Columns);
|
||||||
vim_memset(new_ScreenLinesC, 0, sizeof(u8char_T *) * MAX_MCO);
|
vim_memset(new_ScreenLinesC, 0, sizeof(u8char_T *) * MAX_MCO);
|
||||||
@@ -8920,6 +8929,24 @@ retry:
|
|||||||
if (aucmd_win != NULL && aucmd_win->w_lines == NULL
|
if (aucmd_win != NULL && aucmd_win->w_lines == NULL
|
||||||
&& win_alloc_lines(aucmd_win) == FAIL)
|
&& win_alloc_lines(aucmd_win) == FAIL)
|
||||||
outofmem = TRUE;
|
outofmem = TRUE;
|
||||||
|
#ifdef FEAT_TEXT_PROP
|
||||||
|
// global popup windows
|
||||||
|
for (wp = first_popupwin; wp != NULL; wp = wp->w_next)
|
||||||
|
if (win_alloc_lines(wp) == FAIL)
|
||||||
|
{
|
||||||
|
outofmem = TRUE;
|
||||||
|
goto give_up;
|
||||||
|
}
|
||||||
|
// tab-local popup windows
|
||||||
|
FOR_ALL_TABPAGES(tp)
|
||||||
|
for (wp = tp->tp_first_popupwin; wp != NULL; wp = wp->w_next)
|
||||||
|
if (win_alloc_lines(wp) == FAIL)
|
||||||
|
{
|
||||||
|
outofmem = TRUE;
|
||||||
|
goto give_up;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
give_up:
|
give_up:
|
||||||
|
|
||||||
for (i = 0; i < p_mco; ++i)
|
for (i = 0; i < p_mco; ++i)
|
||||||
|
@@ -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 */
|
||||||
|
/**/
|
||||||
|
1442,
|
||||||
/**/
|
/**/
|
||||||
1441,
|
1441,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user