aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-16 14:16:03 +0800
committerGitHub <noreply@github.com>2022-08-16 14:16:03 +0800
commit5e98a41872bafc781a75925e0de28c8c7a60889d (patch)
treefdb727a69c812c29430ef2ccc69a7ea092995296 /src/nvim/eval.c
parentd5d6ed311b001c8e11dc8d69f9be421d6a7e286e (diff)
downloadrneovim-5e98a41872bafc781a75925e0de28c8c7a60889d.tar.gz
rneovim-5e98a41872bafc781a75925e0de28c8c7a60889d.tar.bz2
rneovim-5e98a41872bafc781a75925e0de28c8c7a60889d.zip
vim-patch:8.1.1869: code for the argument list is spread out (#19791)
Problem: Code for the argument list is spread out. Solution: Put argument list code in arglist.c. (Yegappan Lakshmanan, closes vim/vim#4819) https://github.com/vim/vim/commit/4ad62155a1015751a6645aaecd94b02c94c8934b
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index ff94cf5944..e7cf26bcdc 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -4853,18 +4853,6 @@ static int get_env_tv(char **arg, typval_T *rettv, int evaluate)
return OK;
}
-/// Get the argument list for a given window
-void get_arglist_as_rettv(aentry_T *arglist, int argcount, typval_T *rettv)
-{
- tv_list_alloc_ret(rettv, argcount);
- if (arglist != NULL) {
- for (int idx = 0; idx < argcount; idx++) {
- tv_list_append_string(rettv->vval.v_list,
- (const char *)alist_name(&arglist[idx]), -1);
- }
- }
-}
-
/// Add an assert error to v:errors.
void assert_error(garray_T *gap)
{