summaryrefslogtreecommitdiff
path: root/src/option.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-07-09 13:44:59 +0200
committerBram Moolenaar <Bram@vim.org>2013-07-09 13:44:59 +0200
commit04c5c9ee27e1d6c27085e4e9fefa545f26388a56 (patch)
tree99c988e76befe1b73f912b9906b4b72fa934fcfc /src/option.c
parentc64b85a3480f6692b47ac21977e149311adc7532 (diff)
downloadvim-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.c3
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