mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
*: Provide list length when allocating lists
This commit is contained in:
@@ -4193,7 +4193,7 @@ int get_errorlist_properties(win_T *wp, dict_T *what, dict_T *retdict)
|
||||
}
|
||||
}
|
||||
if ((status == OK) && (flags & QF_GETLIST_ITEMS)) {
|
||||
list_T *l = tv_list_alloc();
|
||||
list_T *l = tv_list_alloc(kListLenMayKnow);
|
||||
(void)get_errorlist(wp, qf_idx, l);
|
||||
tv_dict_add_list(retdict, S_LEN("items"), l);
|
||||
}
|
||||
|
Reference in New Issue
Block a user