mirror of
https://github.com/neovim/neovim.git
synced 2024-12-25 13:45:15 -07:00
fix wrong winnr in getwininfo
This commit is contained in:
parent
0653ed63a5
commit
3ec5351fd1
@ -10332,10 +10332,10 @@ static void f_getwininfo(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
tabnr++;
|
||||
int16_t winnr = 0;
|
||||
FOR_ALL_WINDOWS_IN_TAB(wp, tp) {
|
||||
winnr++;
|
||||
if (wparg != NULL && wp != wparg) {
|
||||
continue;
|
||||
}
|
||||
winnr++;
|
||||
dict_T *const d = get_win_info(wp, tabnr, winnr);
|
||||
tv_list_append_dict(rettv->vval.v_list, d);
|
||||
if (wparg != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user