- Charles -
> When there are no arguments, <f-args> will create no arguments.I think we can add a remark in the docs that <q-args> is an empty string
> That appears not to be the case for <q-args>, as shown by sourcing
> fun! Problem(...)
> echomsg " ----- "
> echomsg " a:0=".a:0
> if a:0 > 0
> echomsg " a:1<".a:1.">"
> com -nargs=? PRBLM call Problem(<q-args>)
> Its not clear from the documentation (at least, not to me) that <q-args>
> should have this behavior of inventing an argument (I assume its "")
> when there are none provided.
> Just thought I'd point it out.
when there are no arguments. I don't see a good reason to change the
behavior. As it is now it also works for a function that takes one
argument. It would fails if <q-args> doesn't produce an empty string
when there is no argument.
How To Keep A Healthy Level Of Insanity:
16. Have your coworkers address you by your wrestling name, Rock Hard Kim.
/// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
\\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html ///