fix wrong winnr in getwininfo

This commit is contained in:
Sha Liu 2018-11-27 10:30:41 +08:00
parent 0653ed63a5
commit 3ec5351fd1

View File

@ -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) {