aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index 5342f8b4869..db7d06056e3 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2613,8 +2613,10 @@ SIZE includes that window's scroll bar, or the divider column to its right.")
2613 { 2613 {
2614 if (!NILP (horflag)) 2614 if (!NILP (horflag))
2615 /* Calculate the size of the left-hand window, by dividing 2615 /* Calculate the size of the left-hand window, by dividing
2616 the usable space in columns by two. */ 2616 the usable space in columns by two.
2617 size_int = XFASTINT (o->width) >> 1; 2617 We round up, since the left-hand window may include
2618 a dividing line, while the right-hand may not. */
2619 size_int = (XFASTINT (o->width) + 1) >> 1;
2618 else 2620 else
2619 size_int = XFASTINT (o->height) >> 1; 2621 size_int = XFASTINT (o->height) >> 1;
2620 } 2622 }