1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-31 09:20:54 -08:00

In window_resize_apply adjust margin width, if necessary (Bug#16649).

* window.c (window_resize_apply): Adjust margin width, if necessary.
This commit is contained in:
Martin Rudalics 2014-02-07 11:55:28 +01:00
parent dc0e4c4851
commit 9be95071f4
2 changed files with 7 additions and 3 deletions

View file

@ -1,11 +1,12 @@
2014-02-07 Martin Rudalics <rudalics@gmx.at>
Constrain window box and body sizes (Bug#16649).
Constrain window box/body sizes and margin widths (Bug#16649).
* xdisp.c (window_box_width): Don't return less than zero.
(window_box_left_offset, window_box_right_offset): Don't return
more than the window's pixel width.
* window.c (window_body_height, window_body_width): Don't return
negative value.
(window_resize_apply): Adjust margin width, if necessary.
2014-02-07 Glenn Morris <rgm@gnu.org>

View file

@ -3923,8 +3923,11 @@ window_resize_apply (struct window *w, bool horflag)
}
}
else
/* Bug#15957. */
w->window_end_valid = 0;
{
adjust_window_margins (w);
/* Bug#15957. */
w->window_end_valid = 0;
}
}