On Sat, May 19, 2018 at 09:23:07AM -0700, Jason Franklin wrote:
> Now, use the mouse wheel to try and scroll in both windows.  The window with
> cursor focus will scroll both windows properly, but not the other window,
> thus breaking the 'scrollbind' setting.

This is intentional, to let you adjust the relative offset between the
two windows.  The 'scrollbind' option is not reset, and will be used
(with the new relative offset) when you start scrolling the active
window again.

This is documented in :help scroll-binding

    When using the scrollbars, the binding only happens when scrolling
    the window with focus (where the cursor is).  You can use this to
    avoid scroll-binding for a moment without resetting options.

and again in :help scrollbind-quickadj

    The 'scrollbind' flag is meaningful when using keyboard commands to
    vertically scroll a window, and also meaningful when using the
    vertical scrollbar of the window which has the cursor focus.
    However, when using the vertical scrollbar of a window which doesn't
    have the cursor focus, 'scrollbind' is ignored.  This allows quick
    adjustment of the relative offset of 'scrollbind' windows.

Both places should probably be updated to also mention the mouse wheel.

Marius Gedminas
-- 
It is easier to optimize correct code than to correct optimized code.
                -- Bill Harlan

-- 
-- 
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.

Attachment: signature.asc
Description: PGP signature

Raspunde prin e-mail lui