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/window.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/nvim/window.c') diff --git a/src/nvim/window.c b/src/nvim/window.c index 39106a7b8d..4a2912d724 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -4619,10 +4619,8 @@ void win_drag_vsep_line(win_T *dragwin, int offset) #define FRACTION_MULT 16384L -/* - * Set wp->w_fraction for the current w_wrow and w_height. - */ -static void set_fraction(win_T *wp) +// Set wp->w_fraction for the current w_wrow and w_height. +void set_fraction(win_T *wp) { wp->w_fraction = ((long)wp->w_wrow * FRACTION_MULT + wp->w_height / 2) / (long)wp->w_height; -- cgit