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. > > Example: > > In an xterm window running some shell, change to the vim source > directory, .../vim71/src. Then start vim with this command: > > vim -N -u NONE --cmd 'runtime plugin/matchparen.vim' +143 main.c > > The cursor should be on the opening parenthesis of the main_errors[] > initializer. Note that the matching closing parenthesis (on line > 156) is not highlighted. Type > > jk > > to move the cursor off and back on the opening parenthesis and note > that the matching closing parenthesis is now highlighted. > > Now type > > zb > zt > > The matching closing parenthesis is highlighted as it should be. > Now type > > k > > to move the cursor up a line and type > > zb > j > zt > > The cursor is over the opening parenthesis and the matching closing > parenthesis is on-screen but not highlighted. > > The same problem appears if you put the cursor on the closing > parenthesis with the opening parenthesis off-screen and if you bring > the matching parenthesis on-screen by scrolling with ^Y and/or ^E > instead of jumping with zb or zt. > > This happens on vim-7.1.297 on Linux and on SunOS. The output of > "vim --version" from the Linux version is attached below. > Matchparen.vim has a Last Change date of "2008 Feb 27". 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. -- An indication you must be a manager: You feel sorry for Dilbert's boss. /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
