mirror of
https://github.com/vim/vim.git
synced 2025-10-13 06:54:15 -04:00
patch 8.2.0204: crash when using winnr('j') in a popup window
Problem: Crash when using winnr('j') in a popup window. Solution: Do not search for neighbors in a popup window. (closes #5568)
This commit is contained in:
@@ -332,8 +332,6 @@ get_winnr(tabpage_T *tp, typval_T *argvar)
|
||||
else if (STRCMP(arg, "#") == 0)
|
||||
{
|
||||
twin = (tp == curtab) ? prevwin : tp->tp_prevwin;
|
||||
if (twin == NULL)
|
||||
nr = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -360,6 +358,8 @@ get_winnr(tabpage_T *tp, typval_T *argvar)
|
||||
else
|
||||
invalid_arg = TRUE;
|
||||
}
|
||||
if (twin == NULL)
|
||||
nr = 0;
|
||||
|
||||
if (invalid_arg)
|
||||
{
|
||||
|
Reference in New Issue
Block a user