fix: make nvim_win_get_number() return win number (#14470)

Closes https://github.com/neovim/neovim/issues/14467
This commit is contained in:
Julian Berman 2021-05-01 10:57:05 -04:00 committed by GitHub
parent 27da5511a0
commit ef81999f4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -381,7 +381,7 @@ Integer nvim_win_get_number(Window window, Error *err)
}
int tabnr;
win_get_tabwin(window, &tabnr, &rv);
win_get_tabwin(win->handle, &tabnr, &rv);
return rv;
}