mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.1727: a popup created with "cursorline" will ignore "firstline"
Problem: A popup created with "cursorline" will ignore "firstline". Solution: When both "cursorline" and "firstline" are present put the cursor on "firstline". (closes #7000) Add the "winid" argument to getcurpos().
This commit is contained in:
@@ -530,6 +530,22 @@ f_getwininfo(typval_T *argvars, typval_T *rettv)
|
||||
return;
|
||||
}
|
||||
}
|
||||
#ifdef FEAT_PROP_POPUP
|
||||
if (wparg != NULL)
|
||||
{
|
||||
tabnr = 0;
|
||||
FOR_ALL_TABPAGES(tp)
|
||||
{
|
||||
tabnr++;
|
||||
FOR_ALL_POPUPWINS_IN_TAB(tp, wp)
|
||||
if (wp == wparg)
|
||||
break;
|
||||
}
|
||||
d = get_win_info(wparg, tp == NULL ? 0 : tabnr, 0);
|
||||
if (d != NULL)
|
||||
list_append_dict(rettv->vval.v_list, d);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user