From: Miles Bader Date: Mon, 11 Dec 2000 02:20:55 +0000 (+0000) Subject: (displayed_window_lines): Don't round up when converting empty space at X-Git-Tag: emacs-pretest-21.0.93~51 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=59ec59ae7aa91c47c56c19faec3dd43a051d9325;p=emacs.git (displayed_window_lines): Don't round up when converting empty space at bottom to lines. --- diff --git a/src/ChangeLog b/src/ChangeLog index 2ad78bfe2ff..9c9d7070a82 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2000-12-11 Miles Bader + + * window.c (displayed_window_lines): Don't round up when + converting empty space at bottom to lines. + 2000-12-09 Stefan Monnier * syntax.c (scan_lists): Check that the right quote char has the 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; }