aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 25656307648..58ab3ee14a0 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1,7 +1,7 @@
1/* Window creation, deletion and examination for GNU Emacs. 1/* Window creation, deletion and examination for GNU Emacs.
2 Does not include redisplay. 2 Does not include redisplay.
3 Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 3 Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1996, 1997, 1998, 2000,
4 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 4 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
5 5
6This file is part of GNU Emacs. 6This file is part of GNU Emacs.
7 7
@@ -4286,6 +4286,14 @@ adjust_window_trailing_edge (window, delta, horiz_flag)
4286 { 4286 {
4287 if (!NILP (XWINDOW (window)->next)) 4287 if (!NILP (XWINDOW (window)->next))
4288 { 4288 {
4289 /* This may happen for the minibuffer. In that case
4290 the window_deletion_count check below does not work. */
4291 if (XINT (CURSIZE (p->next)) - delta <= 0)
4292 {
4293 Fset_window_configuration (old_config);
4294 error ("Cannot adjust window size as specified");
4295 }
4296
4289 XSETINT (CURBEG (p->next), 4297 XSETINT (CURBEG (p->next),
4290 XINT (CURBEG (p->next)) + delta); 4298 XINT (CURBEG (p->next)) + delta);
4291 size_window (p->next, XINT (CURSIZE (p->next)) - delta, 4299 size_window (p->next, XINT (CURSIZE (p->next)) - delta,