diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/xdisp.c | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index cfb151d0f99..e001f967382 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2001-12-18 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 1 | 2001-12-18 Pavel Jan,Bm(Bk <Pavel@Janik.cz> |
| 2 | 2 | ||
| 3 | * xdisp.c (window_box_height): Do not return negative values. | ||
| 4 | From Gerd Moellmann <gerd@gnu.org>. | ||
| 5 | |||
| 3 | * keyboard.c (head_table): Add missing braces around initializer. | 6 | * keyboard.c (head_table): Add missing braces around initializer. |
| 4 | 7 | ||
| 5 | * term.c (keys): Likewise. | 8 | * term.c (keys): Likewise. |
diff --git a/src/xdisp.c b/src/xdisp.c index b2a5a1d08a5..1dd5f0fa985 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -910,7 +910,9 @@ window_box_height (w) | |||
| 910 | height -= estimate_mode_line_height (f, HEADER_LINE_FACE_ID); | 910 | height -= estimate_mode_line_height (f, HEADER_LINE_FACE_ID); |
| 911 | } | 911 | } |
| 912 | 912 | ||
| 913 | return height; | 913 | /* With a very small font and a mode-line that's taller than |
| 914 | default, we might end up with a negative height. */ | ||
| 915 | return max (0, height); | ||
| 914 | } | 916 | } |
| 915 | 917 | ||
| 916 | 918 | ||