aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index f71d26f6d50..c21e95cbef0 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4284,6 +4284,14 @@ adjust_window_trailing_edge (window, delta, horiz_flag)
4284 { 4284 {
4285 if (!NILP (XWINDOW (window)->next)) 4285 if (!NILP (XWINDOW (window)->next))
4286 { 4286 {
4287 /* This may happen for the minibuffer. In that case
4288 the window_deletion_count check below does not work. */
4289 if (XINT (CURSIZE (p->next)) - delta <= 0)
4290 {
4291 Fset_window_configuration (old_config);
4292 error ("Cannot adjust window size as specified");
4293 }
4294
4287 XSETINT (CURBEG (p->next), 4295 XSETINT (CURBEG (p->next),
4288 XINT (CURBEG (p->next)) + delta); 4296 XINT (CURBEG (p->next)) + delta);
4289 size_window (p->next, XINT (CURSIZE (p->next)) - delta, 4297 size_window (p->next, XINT (CURSIZE (p->next)) - delta,