changeset 25044:e6c2ab650ebc

(Fsplit_window): For default size, round up for left window.
author Karl Heuer <kwzh@gnu.org>
date Fri, 23 Jul 1999 08:37:26 +0000
parents c0012b8a093e
children 5312a58f3397
files src/window.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.c	Fri Jul 23 07:27:21 1999 +0000
+++ b/src/window.c	Fri Jul 23 08:37:26 1999 +0000
@@ -2613,8 +2613,10 @@
     {
       if (!NILP (horflag))
 	/* Calculate the size of the left-hand window, by dividing
-	   the usable space in columns by two. */
-	size_int = XFASTINT (o->width) >> 1;
+	   the usable space in columns by two.
+	   We round up, since the left-hand window may include
+	   a dividing line, while the right-hand may not.  */
+	size_int = (XFASTINT (o->width) + 1) >> 1;
       else
 	size_int = XFASTINT (o->height) >> 1;
     }