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:
parent
d791cc3bc2
commit
a3f2bf1b86
2 changed files with 8 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue