mirror of
https://github.com/neovim/neovim.git
synced 2025-12-03 07:23:05 +00:00
vim-patch:8.2.4797: getwininfo() may get oudated values
Problem: getwininfo() may get oudated values.
Solution: Make sure w_botline is up-to-date. (closes vim/vim#10226)
8530b41fd3
Correct test order and add a modeline in test_bufwintabinfo.vim.
This commit is contained in:
@@ -6401,6 +6401,9 @@ dict_T *get_win_info(win_T *wp, int16_t tpnr, int16_t winnr)
|
||||
{
|
||||
dict_T *const dict = tv_dict_alloc();
|
||||
|
||||
// make sure w_botline is valid
|
||||
validate_botline(wp);
|
||||
|
||||
tv_dict_add_nr(dict, S_LEN("tabnr"), tpnr);
|
||||
tv_dict_add_nr(dict, S_LEN("winnr"), winnr);
|
||||
tv_dict_add_nr(dict, S_LEN("winid"), wp->handle);
|
||||
|
||||
Reference in New Issue
Block a user