Commit 7c75be36 authored by Pavel Janík's avatar Pavel Janík
Browse files

(window_box_height): Do not return negative values.

From Gerd Moellmann <gerd@gnu.org>.
parent 3e16e035
2001-12-18 Pavel Jan,Bm(Bk <Pavel@Janik.cz> 2001-12-18 Pavel Jan,Bm(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. * keyboard.c (head_table): Add missing braces around initializer.
   
* term.c (keys): Likewise. * term.c (keys): Likewise.
......
...@@ -910,7 +910,9 @@ window_box_height (w) ...@@ -910,7 +910,9 @@ window_box_height (w)
height -= estimate_mode_line_height (f, HEADER_LINE_FACE_ID); 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);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment