summaryrefslogtreecommitdiff
path: root/src/textprop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/textprop.c')
-rw-r--r--src/textprop.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/textprop.c b/src/textprop.c
index de3344f89..5f5c6a2aa 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -348,11 +348,8 @@ f_prop_add_list(typval_T *argvars, typval_T *rettv UNUSED)
|| check_for_list_arg(argvars, 1) == FAIL)
return;
- if (argvars[1].vval.v_list == NULL)
- {
- emsg(_(e_list_required));
+ if (check_for_nonnull_list_arg(argvars, 1) == FAIL)
return;
- }
dict = argvars[0].vval.v_dict;
if (dict == NULL || !dict_has_key(dict, "type"))