Max Dyckhoff wrote: > Addendum: > > You actually have to drag with the mouse. Just double clicking on a > word will not cause this erroneous behaviour. [1-4]-clicking and then > dragging will make it happen. > > Max > > > -----Original Message----- > > From: Max Dyckhoff [mailto:[EMAIL PROTECTED] > > Sent: Thursday, September 21, 2006 11:18 AM > > To: vim@vim.org > > Cc: [EMAIL PROTECTED] > > Subject: [BUG] > > > > Having just activated scrolloff=4 (which is great!) I have noticed one > > small bug in gvim. > > > > If you do a visual select using the mouse, then the scrolloff will be > > entirely ignored. > > > > 1. Select some text with the mouse. > > 2. Use the keyboard to move the cursor up to the top of the window. > > 3. Watch the cursor break through the 4 line buffer described by > > scrolloff. > > 4. Press escape. > > 5. Use the keyboard to move the cursor up or down. > > 6. Observe as the buffer jumps down to compensate for the scrolloff. > > > > Nothing major, but thought I would mention it! :)
When you start dragging the mouse the 'scrolloff' option is disabled to avoid the text to scroll wildly. It's re-enabled again when ending the Visual selection. This is normal. Perhaps for some movement keys the 'scrolloff' option could also be re-enabled, but that takes extra effort and so far it didn't seem worth it. -- People who want to share their religious views with you almost never want you to share yours with them. /// 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 ///