Ken Takata wrote:
> 2016/7/5 Tue 10:02:46 UTC+9 ZyX wrote:
> > > + The function must return TRUE if the item should be kept.
> >
> > What is TRUE? v:true? True value? Example suggests the latter, but
> > documentation looks for me like it meant TRUE constant from source
> > (i.e. only 1). When talking about expressions it only states about
> > zero result, :if documentation talks about non-zero, so this part
> > should also talk about zero or non-zero.
>
> TRUE and FALSE are already used in other part of this document.
> Maybe adding tags is enough?
>
> --- a/runtime/doc/eval.txt
> +++ b/runtime/doc/eval.txt
> @@ -100,6 +100,7 @@ To force conversion from String to Numbe
> To avoid a leading zero to cause octal conversion, or for using a different
> base, use |str2nr()|.
>
> + *TRUE* *FALSE*
> For boolean operators Numbers are used. Zero is FALSE, non-zero is TRUE.
>
> Note that in the command >
Yeah, this is inconsistant. Since "non-zero" is used in many places,
but v:true could also be used, it's better to use TRUE. Using the tag
makes it easy to jump to the explanation about what TRUE is.
I did a few of those, but since there are so many I'll do more later.
--
hundred-and-one symptoms of being an internet addict:
206. You religiously respond immediately to e-mail, while ignoring
your growing pile of snail mail.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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.