(Fsplit_window): For default size, round up for left window.

This commit is contained in:
Karl Heuer 1999-07-23 08:37:26 +00:00
parent ca29a33e6a
commit 25b332443f

View file

@ -2613,8 +2613,10 @@ SIZE includes that window's scroll bar, or the divider column to its right.")
{ {
if (!NILP (horflag)) if (!NILP (horflag))
/* Calculate the size of the left-hand window, by dividing /* Calculate the size of the left-hand window, by dividing
the usable space in columns by two. */ the usable space in columns by two.
size_int = XFASTINT (o->width) >> 1; 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 else
size_int = XFASTINT (o->height) >> 1; size_int = XFASTINT (o->height) >> 1;
} }