On 10/01/09 18:50, Jonathon Mah wrote:
> Hi all,
>
> This is my first patch here, and my first time working on Vim's
> source, so I could do with a bit of guidance.
>
> With this patch, I've tried to hack my way through getting scrollbind
> to work when scrolling unfocussed windows (the one not containing the
> cursor). This was annoying me, because when I had a vert split diff
> open, my mouse wheel wouldn't scroll both windows in sync half the
> time (when my mouse cursor was over the inactive pane). I just did
> some superficial testing, and it seemed to work, but I don't know the
> nuances of scrollbind.
>
> I generated this patch against r1318 from the SourceForge SVN repo.

The fact that scrolling the unfocused window doesn't move the other one 
is intentional; it's meant to allow you to put the windows back into 
sync if, for any reason, they move out of sync. It's documented as the 
second paragraph under ":help scroll-binding", as follows:

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

Best regards,
Tony.
-- 
Travel important today; Internal Revenue men arrive tomorrow.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui