summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-12-05 19:47:04 +0100
committerBram Moolenaar <Bram@vim.org>2015-12-05 19:47:04 +0100
commit9dc2ce398bb3456cc8f590ef0260459798b34d2a (patch)
tree436c5c47fb7cbcbf8acafe02af697601c89f45e1 /src/normal.c
parent90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28 (diff)
downloadvim-git-9dc2ce398bb3456cc8f590ef0260459798b34d2a.tar.gz
patch 7.4.961v7.4.961
Problem: Test107 fails in some circunstances. Solution: When using "zt", "zb" and "z=" recompute the fraction.
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c
index b9170ace5..89c67d9c8 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -4880,6 +4880,7 @@ dozet:
case 't': scroll_cursor_top(0, TRUE);
redraw_later(VALID);
+ set_fraction(curwin);
break;
/* "z." and "zz": put cursor in middle of screen */
@@ -4888,6 +4889,7 @@ dozet:
case 'z': scroll_cursor_halfway(TRUE);
redraw_later(VALID);
+ set_fraction(curwin);
break;
/* "z^", "z-" and "zb": put cursor at bottom of screen */
@@ -4910,6 +4912,7 @@ dozet:
case 'b': scroll_cursor_bot(0, TRUE);
redraw_later(VALID);
+ set_fraction(curwin);
break;
/* "zH" - scroll screen right half-page */