diff options
| author | Pavel Janík | 2001-12-18 16:16:14 +0000 |
|---|---|---|
| committer | Pavel Janík | 2001-12-18 16:16:14 +0000 |
| commit | 7c75be3651fd90d159d12c6d7871e0cc6e94a522 (patch) | |
| tree | cc97e541df2b55a9e0232b6aeac0721ed243841c /src | |
| parent | 3e16e035c5fad0eab8ee2b84ee175bcc16b46736 (diff) | |
| download | emacs-7c75be3651fd90d159d12c6d7871e0cc6e94a522.tar.gz emacs-7c75be3651fd90d159d12c6d7871e0cc6e94a522.zip | |
(window_box_height): Do not return negative values.
From Gerd Moellmann <gerd@gnu.org>.
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 | ||