mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
Merge pull request #9278 from liushapku/master
fix wrong winnr in getwininfo (issue: #9277)
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user