Commit e99c7521 authored by Jan Djärv's avatar Jan Djärv

* window.c (adjust_window_trailing_edge): Check that shrinking

 does not set a window to size zero or less.
parent ab09adac
2006-02-08 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* window.c (adjust_window_trailing_edge): Check that shrinking
does not set a window to size zero or less.
2006-02-08 Miles Bader <miles@gnu.org>
* editfns.c (Fconstrain_to_field): Use Fget_char_property instead
......
......@@ -4284,6 +4284,14 @@ adjust_window_trailing_edge (window, delta, horiz_flag)
{
if (!NILP (XWINDOW (window)->next))
{
/* This may happen for the minibuffer. In that case
the window_deletion_count check below does not work. */
if (XINT (CURSIZE (p->next)) - delta <= 0)
{
Fset_window_configuration (old_config);
error ("Cannot adjust window size as specified");
}
XSETINT (CURBEG (p->next),
XINT (CURBEG (p->next)) + delta);
size_window (p->next, XINT (CURSIZE (p->next)) - delta,
......
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