mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 01:46:29 +00:00
*: Provide list length when allocating lists
This commit is contained in:
@@ -1217,7 +1217,7 @@ static void shada_read(ShaDaReadDef *const sd_reader, const int flags)
|
||||
khash_t(fnamebufs) fname_bufs = KHASH_EMPTY_TABLE(fnamebufs);
|
||||
khash_t(strset) oldfiles_set = KHASH_EMPTY_TABLE(strset);
|
||||
if (get_old_files && (oldfiles_list == NULL || force)) {
|
||||
oldfiles_list = tv_list_alloc();
|
||||
oldfiles_list = tv_list_alloc(kListLenUnknown);
|
||||
set_vim_var_list(VV_OLDFILES, oldfiles_list);
|
||||
}
|
||||
ShaDaReadResult srni_ret;
|
||||
|
Reference in New Issue
Block a user