Mercurial > emacs
diff src/window.c @ 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 | 5e507b813c1d |
| children | 2105537c5916 |
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; }
