0
0
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:
Bram Moolenaar
2020-09-22 21:55:41 +02:00
parent 4f73b8e9cc
commit 99ca9c4868
7 changed files with 89 additions and 14 deletions

View File

@@ -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
}
/*