Hi Bram!

On Mi, 11 Dez 2013, Christian Brabandt wrote:

> quite probable, I'll need some time to investigate that test.
> It's not easy to follow.

Yes, I think, that is the case.

Attached is an updated patch, including the changes to the test37.ok 
file.

Best,
Christian
-- 
Die Post hat gestreikt und 20.000 Postangestellte gingen auf die
Straße - viele von ihnen zum ersten mal."

-- 
-- 
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.
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -8050,6 +8050,7 @@
 {
 #ifdef FEAT_SCROLLBIND
     win_T	*wp;
+    buf_T	*buf = curbuf;
     long	topline;
     long	y;
     linenr_T	old_linenr = curwin->w_cursor.lnum;
@@ -8088,6 +8089,7 @@
     {
 	if (curwin->w_p_scb)
 	{
+	    curbuf = curwin->w_buffer;
 	    y = topline - curwin->w_topline;
 	    if (y > 0)
 		scrollup(y, TRUE);
@@ -8102,6 +8104,7 @@
 	}
     }
     curwin = wp;
+    curbuf = buf;
     if (curwin->w_p_scb)
     {
 	did_syncbind = TRUE;
diff --git a/src/testdir/test37.ok b/src/testdir/test37.ok
--- a/src/testdir/test37.ok
+++ b/src/testdir/test37.ok
@@ -27,7 +27,7 @@
 
 . line 16 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 16
 :set scrollbind
-zt:
-. line 15 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 15
 :set scrollbind
-. line 11 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 11
+. line 16 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 16
+j:
+. line 12 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 12

Raspunde prin e-mail lui