diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-01-22 21:05:07 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-01-22 21:05:07 +0100 |
commit | f3d419d719202a0d7320f200356590c6d85871e2 (patch) | |
tree | bf62a559aefa01401e08cc85406cc7ce6592826c /src/move.c | |
parent | 445edda2f9a52ff9bce83ee5334d4ece2bd20494 (diff) | |
download | vim-git-f3d419d719202a0d7320f200356590c6d85871e2.tar.gz |
updated for version 7.3.106v7.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.
Diffstat (limited to 'src/move.c')
-rw-r--r-- | src/move.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/move.c b/src/move.c index 173063134..447445b46 100644 --- 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); - 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 |