Commit a3f2bf1b authored by Martin Rudalics's avatar Martin Rudalics
Browse files

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).
parent d791cc3b
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.
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment