diff options
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. */ |