Christian wrote:
> On Fr, 08 Nov 2013, Bram Moolenaar wrote:
>
> > + # define SET_NO_HLSEARCH(flag) no_hlsearch = (flag);
> > set_vim_var_nr(VV_HLSEARCH, !no_hlsearch)
>
> Is there a reason, this is not e.g.
>
> # define SET_NO_HLSEARCH(flag) no_hlsearch = (flag);
> set_vim_var_nr(VV_HLSEARCH, p_hls && !no_hlsearch)
>
> (e.g. v:hlsearch only returns 1 if 'hls' is set).
>
> I just was confused by the fact, that after searching for a string
> v:hlsearch was 1 although 'hls' was not set.
Well, the docs suggest that v:hlsearch reflects the value of the
internal no_hlsearch flag. Thus the user is expected to check the 'hls'
option as well. Especially because setting v:hlsearch to 1 does not
mean enabling the option.
--
"To whoever finds this note -
I have been imprisoned by my father who wishes me to marry
against my will. Please please please please come and rescue me.
I am in the tall tower of Swamp Castle."
SIR LAUNCELOT's eyes light up with holy inspiration.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// 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.