diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-07-09 13:44:59 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-07-09 13:44:59 +0200 |
commit | 04c5c9ee27e1d6c27085e4e9fefa545f26388a56 (patch) | |
tree | 99c988e76befe1b73f912b9906b4b72fa934fcfc /src/option.c | |
parent | c64b85a3480f6692b47ac21977e149311adc7532 (diff) | |
download | vim-git-04c5c9ee27e1d6c27085e4e9fefa545f26388a56.tar.gz |
updated for version 7.4a.005v7.4a.005
Problem: Scroll binding causes unexpected scroll.
Solution: Store the topline after updating scroll binding. Add a test.
(Lech Lorens)
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c index e91ef5d60..2f1ef1130 100644 --- a/src/option.c +++ b/src/option.c @@ -7801,7 +7801,10 @@ set_bool_option(opt_idx, varp, value, opt_flags) 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 |