From Gerd Moellmann <gerd@gnu.org>.
2001-12-18 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
+ * xdisp.c (window_box_height): Do not return negative values.
+ From Gerd Moellmann <gerd@gnu.org>.
+
* keyboard.c (head_table): Add missing braces around initializer.
* term.c (keys): Likewise.
height -= estimate_mode_line_height (f, HEADER_LINE_FACE_ID);
}
- return height;
+ /* With a very small font and a mode-line that's taller than
+ default, we might end up with a negative height. */
+ return max (0, height);
}