mirror of
https://github.com/neovim/neovim.git
synced 2025-11-26 04:00:45 +00:00
*: Provide list length when allocating lists
This commit is contained in:
@@ -412,7 +412,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
// It's better to make v:oldfiles an empty list than NULL.
|
||||
if (get_vim_var_list(VV_OLDFILES) == NULL) {
|
||||
set_vim_var_list(VV_OLDFILES, tv_list_alloc());
|
||||
set_vim_var_list(VV_OLDFILES, tv_list_alloc(0));
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user