aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index 67fe10fe26c..95a51c3ecb9 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1452,9 +1452,13 @@ value is reasonable when this function is called.")
1452 CHECK_LIVE_WINDOW (window, 0); 1452 CHECK_LIVE_WINDOW (window, 0);
1453 1453
1454 w = XWINDOW (window); 1454 w = XWINDOW (window);
1455
1455 startpos = marker_position (w->start); 1456 startpos = marker_position (w->start);
1456 top = XFASTINT (w->top) - FRAME_MENU_BAR_LINES (XFRAME (WINDOW_FRAME (w))); 1457 top = XFASTINT (w->top) - FRAME_MENU_BAR_LINES (XFRAME (WINDOW_FRAME (w)));
1457 1458
1459 if (MINI_WINDOW_P (w) && top > 0)
1460 error ("Can't expand minibuffer to full frame");
1461
1458 window_loop (DELETE_OTHER_WINDOWS, window, 0, WINDOW_FRAME (w)); 1462 window_loop (DELETE_OTHER_WINDOWS, window, 0, WINDOW_FRAME (w));
1459 1463
1460 /* Try to minimize scrolling, by setting the window start to the point 1464 /* Try to minimize scrolling, by setting the window start to the point