aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1999-07-23 08:37:26 +0000
committerKarl Heuer1999-07-23 08:37:26 +0000
commit25b332443f8fe51f7bc87488310953a2c58fdd6c (patch)
tree0e7dd7f0e677c9d128f056fb7308b2e9a83d16d3 /src
parentca29a33e6a110dbf3c420a813513253b841303f9 (diff)
downloademacs-25b332443f8fe51f7bc87488310953a2c58fdd6c.tar.gz
emacs-25b332443f8fe51f7bc87488310953a2c58fdd6c.zip
(Fsplit_window): For default size, round up for left window.
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 }