diff src/window.c @ 11207:e6140f3d2be7 v8.0.0490

patch 8.0.0490: vertical split makes 'winfixwidth' window smaller commit https://github.com/vim/vim/commit/38e3483637c16e018f88c07b1dcff97cdb821a29 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 19 20:22:36 2017 +0100 patch 8.0.0490: vertical split makes 'winfixwidth' window smaller Problem: Splitting a 'winfixwidth' window vertically makes it one column smaller. (Dominique Pelle) Solution: Add one to the width for the separator.
author Christian Brabandt <cb@256bit.org>
date Sun, 19 Mar 2017 20:30:04 +0100
parents e08ead1d269f
children a14090a30a3f
line wrap: on
line diff
--- a/src/window.c
+++ b/src/window.c
@@ -870,9 +870,9 @@ win_split_ins(
 
 	/* We don't like to take lines for the new window from a
 	 * 'winfixwidth' window.  Take them from a window to the left or right
-	 * instead, if possible. */
+	 * instead, if possible. Add one for the separator. */
 	if (oldwin->w_p_wfw)
-	    win_setwidth_win(oldwin->w_width + new_size, oldwin);
+	    win_setwidth_win(oldwin->w_width + new_size + 1, oldwin);
 
 	/* Only make all windows the same width if one of them (except oldwin)
 	 * is wider than one of the split windows. */