On Sun, Nov 12, 2017 at 8:34 PM, Tony Mechelynck
<[email protected]> wrote:
> The way I see it, there was a bug before (which you used as an
> undocumented feature), now the bug has been fixed, and you're
> complaining. The way your pattern is written, it _ought_ to match
> everywhere, though in the case of its last branch it is a zero-length
> match. There was a patch recently about search highlighting… let me
> see… « 8.0.1250  'hlsearch' highlighting not removed after incsearch
> ». Maybe that was what changed the behaviour?

Perhaps. But I find it hard to accept the "undocumented feature" part.
To compare the regular expression behavior of GNU grep:

$ echo foobar | grep --color=always -E 'foo|'
foobar
^^^ only 'foo' is highlighted here, which is similar to how vim
behaved before this, but not recently.

The current vim behavior now seems to say "empty pattern match
anything, so that's why everything gets highlighted" which feels
wrong. Empty pattern should not match anything, that's what the '.'
atom is for, isn't it?.

Regards,
nazri

-- 
-- 
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.

Raspunde prin e-mail lui