diff src/move.c @ 2688:f016c3708ae3 v7.3.106

updated for version 7.3.106 Problem: When 'cursorbind' is set another window may scroll unexpectedly when 'scrollbind' is also set. (Xavier Wang) Solution: Don't call update_topline() if 'scrollbind' is set.
author Bram Moolenaar <bram@vim.org>
date Sat, 22 Jan 2011 21:05:07 +0100
parents 073ff46fe397
children 0606065af0a0
line wrap: on
line diff
--- a/src/move.c
+++ b/src/move.c
@@ -2882,9 +2882,11 @@ do_check_cursorbind()
 	    if (has_mbyte)
 		mb_adjust_cursor();
 # endif
+	    redraw_later(VALID);
 
-	    redraw_later(VALID);
-	    update_topline();
+	    /* Only scroll when 'scrollbind' hasn't done this. */
+	    if (!curwin->w_p_scb)
+		update_topline();
 # ifdef FEAT_WINDOWS
 	    curwin->w_redr_status = TRUE;
 # endif