forked from aniani/vim
patch 8.1.2076: crash when trying to put a terminal in a popup window
Problem: Crash when trying to put a terminal buffer in a popup window. Solution: Check for NULL buffer. Do not allow putting a terminal in a popup window.
This commit is contained in:
@@ -3347,6 +3347,8 @@ term_update_window(win_T *wp)
|
||||
newcols = MIN(newcols, twp->w_width);
|
||||
}
|
||||
}
|
||||
if (newrows == 99999 || newcols == 99999)
|
||||
return; // safety exit
|
||||
newrows = rows == 0 ? newrows : minsize ? MAX(rows, newrows) : rows;
|
||||
newcols = cols == 0 ? newcols : minsize ? MAX(cols, newcols) : cols;
|
||||
|
||||
|
Reference in New Issue
Block a user