Hi mattn!

2016-2-25(Thu) 21:50:37 UTC+9 mattn:
> On Thursday, February 25, 2016 at 9:07:46 PM UTC+9, h_east wrote:
> > Hi,
> > 
> > I think Nikolai's patch is simple and better.  Looks good for me.
> > This is perfect when adding a test :-)
> > 
> > mattn>
> > Detailed error will be output in get_tv_string_buf_chk().
> 
> No. When the option is passed neither a nor r, it should be error, I think.

I see.
Is attached patch OK?

--
Best regards,
Hirohito Higashi (a.k.a. h_east)

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/eval.c b/src/eval.c
index db9c6b7..b81dc6a 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -18274,13 +18274,15 @@ set_qf_ll_list(
     {
 	list_T  *l = list_arg->vval.v_list;
 
-	if (action_arg->v_type == VAR_STRING)
+	if (action_arg->v_type != VAR_UNKNOWN)
 	{
 	    act = get_tv_string_chk(action_arg);
 	    if (act == NULL)
 		return;		/* type error; errmsg already given */
-	    if (*act == 'a' || *act == 'r')
+	    if (*act == 'a' || *act == 'r' || *act == ' ')
 		action = *act;
+	    else
+		EMSG2(_(e_invarg2), act);
 	}
 
 	if (l != NULL && set_errorlist(wp, l, action,

Raspunde prin e-mail lui