e423a19
To: vim_dev@googlegroups.com
e423a19
Subject: Patch 7.3.106
e423a19
Fcc: outbox
e423a19
From: Bram Moolenaar <Bram@moolenaar.net>
e423a19
Mime-Version: 1.0
e423a19
Content-Type: text/plain; charset=UTF-8
e423a19
Content-Transfer-Encoding: 8bit
e423a19
------------
e423a19
e423a19
Patch 7.3.106
e423a19
Problem:    When 'cursorbind' is set another window may scroll unexpectedly
e423a19
            when 'scrollbind' is also set. (Xavier Wang)
e423a19
Solution:   Don't call update_topline() if 'scrollbind' is set.
e423a19
Files:      src/move.c
e423a19
e423a19
e423a19
*** ../vim-7.3.105/src/move.c	2010-08-15 21:57:29.000000000 +0200
e423a19
--- src/move.c	2011-01-22 20:58:50.000000000 +0100
e423a19
***************
e423a19
*** 2882,2890 ****
e423a19
  	    if (has_mbyte)
e423a19
  		mb_adjust_cursor();
e423a19
  # endif
e423a19
- 
e423a19
  	    redraw_later(VALID);
e423a19
! 	    update_topline();
e423a19
  # ifdef FEAT_WINDOWS
e423a19
  	    curwin->w_redr_status = TRUE;
e423a19
  # endif
e423a19
--- 2882,2892 ----
e423a19
  	    if (has_mbyte)
e423a19
  		mb_adjust_cursor();
e423a19
  # endif
e423a19
  	    redraw_later(VALID);
e423a19
! 
e423a19
! 	    /* Only scroll when 'scrollbind' hasn't done this. */
e423a19
! 	    if (!curwin->w_p_scb)
e423a19
! 		update_topline();
e423a19
  # ifdef FEAT_WINDOWS
e423a19
  	    curwin->w_redr_status = TRUE;
e423a19
  # endif
e423a19
*** ../vim-7.3.105/src/version.c	2011-01-22 01:13:33.000000000 +0100
e423a19
--- src/version.c	2011-01-22 21:03:21.000000000 +0100
e423a19
***************
e423a19
*** 716,717 ****
e423a19
--- 716,719 ----
e423a19
  {   /* Add new patch number below this line */
e423a19
+ /**/
e423a19
+     106,
e423a19
  /**/
e423a19
e423a19
-- 
e423a19
Never eat yellow snow.
e423a19
e423a19
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
e423a19
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
e423a19
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
e423a19
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///