]> git.eshelyaron.com Git - emacs.git/commitdiff
(displayed_window_lines): Don't round up when converting empty space at
authorMiles Bader <miles@gnu.org>
Mon, 11 Dec 2000 02:20:55 +0000 (02:20 +0000)
committerMiles Bader <miles@gnu.org>
Mon, 11 Dec 2000 02:20:55 +0000 (02:20 +0000)
bottom to lines.

src/ChangeLog
src/window.c

index 2ad78bfe2ffdeb7d23b46b7325023b588885defe..9c9d7070a829c9ccc94e2616874cb197d408852d 100644 (file)
@@ -1,3 +1,8 @@
+2000-12-11  Miles Bader  <miles@gnu.org>
+
+       * window.c (displayed_window_lines): Don't round up when
+       converting empty space at bottom to lines.
+
 2000-12-09  Stefan Monnier  <monnier@cs.yale.edu>
 
        * syntax.c (scan_lists): Check that the right quote char has the
index 223ef072386c0c684b3dbf7172b795f9292987e1..5a54f46091cc5bbde1c25ffc921cc8e5a9656c16 100644 (file)
@@ -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;
     }