comparison src/option.c @ 5157:7a6ce0c426fe v7.4a.005

updated for version 7.4a.005 Problem: Scroll binding causes unexpected scroll. Solution: Store the topline after updating scroll binding. Add a test. (Lech Lorens)
author Bram Moolenaar <bram@vim.org>
date Tue, 09 Jul 2013 13:44:59 +0200
parents 11d0c6df1d7b
children 8c6615a30951
comparison
equal deleted inserted replaced
5156:d61d9549c1e2 5157:7a6ce0c426fe
7799 /* when 'scrollbind' is set: snapshot the current position to avoid a jump 7799 /* when 'scrollbind' is set: snapshot the current position to avoid a jump
7800 * at the end of normal_cmd() */ 7800 * at the end of normal_cmd() */
7801 else if ((int *)varp == &curwin->w_p_scb) 7801 else if ((int *)varp == &curwin->w_p_scb)
7802 { 7802 {
7803 if (curwin->w_p_scb) 7803 if (curwin->w_p_scb)
7804 {
7804 do_check_scrollbind(FALSE); 7805 do_check_scrollbind(FALSE);
7806 curwin->w_scbind_pos = curwin->w_topline;
7807 }
7805 } 7808 }
7806 #endif 7809 #endif
7807 7810
7808 #if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX) 7811 #if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX)
7809 /* There can be only one window with 'previewwindow' set. */ 7812 /* There can be only one window with 'previewwindow' set. */