diff options
| author | Gerd Moellmann | 1999-10-31 13:04:20 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-10-31 13:04:20 +0000 |
| commit | e82bd92274ff748a89c86600abfecf8d68930f32 (patch) | |
| tree | 95c1ee43c7ab46f919fd3795d6bfad559b4ec9a2 /src | |
| parent | 7843e09cdc402f6f9ea1a7f549180dff542d1cc0 (diff) | |
| download | emacs-e82bd92274ff748a89c86600abfecf8d68930f32.tar.gz emacs-e82bd92274ff748a89c86600abfecf8d68930f32.zip | |
(resize_mini_window): Compute needed height differently.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index fd9d7c7d230..1c2e22e7a53 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -5519,7 +5519,8 @@ resize_mini_window (w, exact_p) | |||
| 5519 | 5519 | ||
| 5520 | /* Find out the height of the text in the window. */ | 5520 | /* Find out the height of the text in the window. */ |
| 5521 | move_it_to (&it, ZV, -1, -1, -1, MOVE_TO_POS); | 5521 | move_it_to (&it, ZV, -1, -1, -1, MOVE_TO_POS); |
| 5522 | height = (unit - 1 + it.current_y + last_height) / unit; | 5522 | height = ((unit - 1 + it.current_y + it.max_ascent + it.max_descent) |
| 5523 | / unit); | ||
| 5523 | height = max (1, height); | 5524 | height = max (1, height); |
| 5524 | 5525 | ||
| 5525 | /* Compute a suitable window start. */ | 5526 | /* Compute a suitable window start. */ |