From 5e6f7e1d558fed8ef7b368a62b68d59af6766143 Mon Sep 17 00:00:00 2001 From: ZyX Date: Sat, 8 Apr 2017 21:30:47 +0300 Subject: eval: Alter E5050 error message, test that --- src/nvim/eval.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 780a33eced..882b824b49 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -10991,8 +10991,7 @@ void get_user_input(const typval_T *const argvars, char xp_name_buf[NUMBUFLEN]; if (argvars[0].v_type == VAR_DICT) { if (argvars[1].v_type != VAR_UNKNOWN) { - emsgf( - _("E5050: When providing {opts} argument no more arguments follow")); + emsgf(_("E5050: {opts} must be the only argument")); return; } const dict_T *const dict = argvars[0].vval.v_dict; -- cgit