Fix bug when resizing mini window (Bug#16424).

* xdisp.c (resize_mini_window): Round height to a multiple of
frame's line height.  Fix bug in calculation of window start
position (Bug#16424).
This commit is contained in:
Martin Rudalics 2014-01-13 12:30:30 +01:00
parent d791cc3bc2
commit a3f2bf1b86
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2014-01-13 Martin Rudalics <rudalics@gmx.at>
* xdisp.c (resize_mini_window): Round height to a multiple of
frame's line height. Fix bug in calculation of window start
position (Bug#16424).
2014-01-13 Jan Djärv <jan.h.d@swipnet.se>
* macfont.m: Include termchar.h.

View file

@ -10658,9 +10658,9 @@ resize_mini_window (struct window *w, int exact_p)
/* Compute a suitable window start. */
if (height > max_height)
{
height = max_height;
height = (max_height / unit) * unit;
init_iterator (&it, w, ZV, ZV_BYTE, NULL, DEFAULT_FACE_ID);
move_it_vertically_backward (&it, height);
move_it_vertically_backward (&it, height - unit);
start = it.current.pos;
}
else