On Monday, October 27, 2014 7:00:22 PM UTC-5, Eelis wrote: > On 2008-05-10 22:16, Bram Moolenaar wrote: > > > > Gary Johnson wrote: > > > >> I just discovered that the parenthesis matching the one the cursor > >> is on is not highlighted if it was initially off-screen and is > >> brought on-screen by scrolling or by the zt or zb commands. > >> > >>[..] > > > > Well, the matchparen is only triggered when the cursor moves. Scrolling > > doesn't trigger it. There currently is no autocommand event for > > scrolling. I'm not sure if it's useful enough to add this. > > Has anything changed in vim in the past 6 years that might make it > possible to fix this bug? > > Just checking :) >
Matchparen already has code to limit the search to the visible window. It seems to me that matchparen could fairly easily go ahead and do the highlight even without the end line being visible, and for not much additional time taken. According to the help a limit of 100 lines above/below the cursor is already also applied, so at least one of these checks is probably redundant. Maybe it could limit to some number of lines below the visible window instead of below the cursor if limits are really needed? -- -- 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.
