On Sun, Nov 12, 2017 at 11:45 AM, Nazri Ramliy <[email protected]> wrote: > Hi, > > With 'hlsearch' set, typing '/foo\|' highlights everything, presumably > because of the empty branch following the '\|', which is kinda > annoying. > > This seems to be a new behavior, because I don't remember vim behaving > this way. I don't know when it starts behaving like this but it surely > don't if I build vim from earlier commits, say 6 months ago > 4475b623960671898dac6a72b13a8d140402afa6 (v8.0.0596). > > nazri
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? Best regards, Tony. -- -- 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.
