Sunday, March 26, 2017

Re: Matchit plugin modifying virtualedit

David, Bram:

     Thanks for the bug report and the fix.  Please try the attached version.  (This list accepts attachments, doesn't it ...)

-- 
Benji

On Tue, Mar 21, 2017 at 11:30 AM, Bram Moolenaar <Bram@moolenaar.net> wrote:

David Fishburn wrote:

> > ...
> > > I triggered it by simply hitting % on a { in a Java file.
> >
> > It's very possible that it's set somewhere else.  The problem is that
> > the matchit plugin always sets it empty, also when it already was empty.
> >
> >           let restore_options = " ve=" . &ve . restore_options
> >           set ve=
> >
> > This should be change to:
> >
> >         if &ve != ''
> >           let restore_options = " ve=" . &ve . restore_options
> >           set ve=
> >         endif
> >
> > Should also happen for 'ignorecase'.
> >
> >
> I tested the "if &ve !=" change and that does appear to solve my issue.

It also didn't change where it's set from?  Then it must have had a
value when the plugin was loaded.

--
hundred-and-one symptoms of being an internet addict:
177. You log off of your system because it's time to go to work.

 /// Bram Moolenaar -- Bram@Moolenaar.net -- 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_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: