diff src/normal.c @ 7311:743c258ca3ab v7.4.961

commit https://github.com/vim/vim/commit/9dc2ce398bb3456cc8f590ef0260459798b34d2a Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 5 19:47:04 2015 +0100 patch 7.4.961 Problem: Test107 fails in some circunstances. Solution: When using "zt", "zb" and "z=" recompute the fraction.
author Christian Brabandt <cb@256bit.org>
date Sat, 05 Dec 2015 20:00:04 +0100
parents 0c1278704b5c
children a49163681559
line wrap: on
line diff
--- 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 */