From 63606bb4099c3df049a24fd31907553682e6fd09 Mon Sep 17 00:00:00 2001 From: watiko Date: Tue, 23 Feb 2016 01:15:57 +0900 Subject: vim-patch:7.4.961 Problem: Test107 fails in some circunstances. Solution: When using "zt", "zb" and "z=" recompute the fraction. https://github.com/vim/vim/commit/9dc2ce398bb3456cc8f590ef0260459798b34d2a --- src/nvim/normal.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/nvim/normal.c') diff --git a/src/nvim/normal.c b/src/nvim/normal.c index e064d34e09..9ee7a97270 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -4096,6 +4096,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 */ @@ -4104,6 +4105,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 */ @@ -4124,6 +4126,7 @@ dozet: case 'b': scroll_cursor_bot(0, true); redraw_later(VALID); + set_fraction(curwin); break; /* "zH" - scroll screen right half-page */ -- cgit