summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2000-12-11 02:20:55 +0000
committerMiles Bader <miles@gnu.org>2000-12-11 02:20:55 +0000
commit59ec59ae7aa91c47c56c19faec3dd43a051d9325 (patch)
tree6e255f12c3cdeeff9367215cc594f6f75f4f327f /src/window.c
parentca98cd37912088bd7c7fd02c8da265d13d71bb4f (diff)
downloademacs-59ec59ae7aa91c47c56c19faec3dd43a051d9325.tar.gz
(displayed_window_lines): Don't round up when converting empty space at
bottom to lines.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 223ef072386..5a54f46091c 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4479,7 +4479,7 @@ displayed_window_lines (w)
{
struct frame *f = XFRAME (w->frame);
int rest = height - bottom_y;
- int lines = (rest + CANON_Y_UNIT (f) - 1) / CANON_Y_UNIT (f);
+ int lines = rest / CANON_Y_UNIT (f);
it.vpos += lines;
}