Lech Lorens wrote:
> I discovered a problem with the 'scrollbind' setting which causes one of
> the bound windows to scroll unexpectedly introducing an offset to the
> bounding thus effectively destroying the desired setup.
>
> The attached script scb-problem.vim when sourced will make the problem
> apparent. The intention is for the line "line X" on the left to be
> aligned with line "LINE Y" on the right. The actual situation is that
> after the script runs I get an offset of 523 lines between the windows.
>
> The attached patch fixes it and provides a test.
> But NOTE!
> In its current shape the test is pretty much useless: it doesn't
> reproduce the problem even before applying the patch. Sorry, but try as
> I may, I can't transform scb-problem.vim into a useful test for Vim.
> Perhaps someone more knowledgeable will be able to change a line or two
> to make it work. If it happens so, I would be extremely grateful if
> someone would explain to me what is wrong with my approach.
The fix seems OK. But the test already passes without it. Also, the
test changes the window height, which is nasty.
Perhaps you can make it work by forcing a redraw?
--
WOMAN: I didn't know we had a king. I thought we were an autonomous
collective.
DENNIS: You're fooling yourself. We're living in a dictatorship. A
self-perpetuating autocracy in which the working classes--
WOMAN: Oh there you go, bringing class into it again.
DENNIS: That's what it's all about if only people would--
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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/groups/opt_out.