Mercurial > emacs
diff src/window.c @ 68724:fb5a31085a6f
* window.c (adjust_window_trailing_edge): Check that shrinking
does not set a window to size zero or less.
| author | Jan Dj?rv <jan.h.d@swipnet.se> |
|---|---|
| date | Wed, 08 Feb 2006 13:39:52 +0000 |
| parents | 3bd95f4f2941 |
| children | f8b092ff513c b98066f4aa10 4b3d39451150 |
line wrap: on
line diff
--- a/src/window.c Wed Feb 08 08:05:13 2006 +0000 +++ b/src/window.c Wed Feb 08 13:39:52 2006 +0000 @@ -4284,6 +4284,14 @@ { 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,
