I agree.  I confirmed this odd behavior with

$ gvim -u NONE -N
:set so=4

and adding 100 lines to the buffer.  As you say, for Step 1 it is
important to click and drag; entering Visual mode with "v" or
double-clicking does not reproduce the bug.  For Step 2, I simply used
"H" (without the quotes).

HTH                                     --Benji Fisher

On Thu, Sep 21, 2006 at 04:32:31PM -0700, 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! :)
> >
> > Max

Reply via email to