commit | 04c5c9ee27e1d6c27085e4e9fefa545f26388a56 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Jul 09 13:44:59 2013 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Jul 09 13:44:59 2013 +0200 |
tree | 99c988e76befe1b73f912b9906b4b72fa934fcfc | |
parent | c64b85a3480f6692b47ac21977e149311adc7532 [diff] [blame] |
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)
diff --git a/src/option.c b/src/option.c index e91ef5d..2f1ef11 100644 --- a/src/option.c +++ b/src/option.c
@@ -7801,7 +7801,10 @@ else if ((int *)varp == &curwin->w_p_scb) { if (curwin->w_p_scb) + { do_check_scrollbind(FALSE); + curwin->w_scbind_pos = curwin->w_topline; + } } #endif