does not set a window to size zero or less.
+2006-02-08 Jan Dj\e,Ad\e(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
{
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,