0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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.
This commit is contained in:
Bram Moolenaar
2011-01-22 21:05:07 +01:00
parent 445edda2f9
commit f3d419d719
2 changed files with 6 additions and 2 deletions

View File

@@ -2882,8 +2882,10 @@ do_check_cursorbind()
if (has_mbyte)
mb_adjust_cursor();
# endif
redraw_later(VALID);
/* Only scroll when 'scrollbind' hasn't done this. */
if (!curwin->w_p_scb)
update_topline();
# ifdef FEAT_WINDOWS
curwin->w_redr_status = TRUE;

View File

@@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
106,
/**/
105,
/**/