On Sun, Jun 24, 2018 at 10:21:10PM +0200, Christian Brabandt wrote:
>
> On So, 24 Jun 2018, Tony Mechelynck wrote:
>
> > At startup from a handcoded Session.vim I get this error (which I
> > didn't get before with the same session script)
> >
> > Error detected while processing function <SNR>24_Highlight_Matching_Pair:
> > line 97:
> > E475: Invalid argument: 0
> >
> > I get this several times, including when clicking the statusline of a
> > non-current window to make it current.
> > Script 24 (as listed by :scriptnames) is
> > /usr/local/share/vim/vim81/plugin/matchparen.vim
> >
> > If I move the cursor, be it by keyboard or by mouse, I mostly don't
> > get this message, and the matching brackets are highlighted correctly.
> > However I do get it when the matched brackets are the first and last
> > characters on a line. For instance when the line is
> >
> > <!-- P -->
> >
> > with 'matchpairs' set to (:),[:],{:},<:>
>
> Most likely patch 8.1.112.
eval_expr_to_bool() handles numbers just fine. Why make supplying a
number for the skip argument a hard error instead of simply evaluating
it to a boolean?
The documentation had already stated that evaluation of the skip
argument "should return non-zero if this match is to be skipped".
The general reporting of errors instead of ignoring them is definitely
useful, but it seems like there was indeed a bug in that a number was
considered an error.
Cheers,
--
James
GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7 2D23 DFE6 91AE 331B A3DB
--
--
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.