comparison src/window.c @ 6982:5137d3777e4a

(set_window_width): Don't delete root window for being too narrow.
author Richard M. Stallman <rms@gnu.org>
date Wed, 20 Apr 1994 07:27:20 +0000
parents 5cc78dd8efc3
children 0a18af7eb587
comparison
equal deleted inserted replaced
6981:9d977a1a7147 6982:5137d3777e4a
1532 register struct window *c; 1532 register struct window *c;
1533 int owidth = XFASTINT (w->width); 1533 int owidth = XFASTINT (w->width);
1534 int left, pos, lastright, opos, lastoright; 1534 int left, pos, lastright, opos, lastoright;
1535 Lisp_Object child; 1535 Lisp_Object child;
1536 1536
1537 if (!nodelete && width < window_min_width) 1537 if (!nodelete && width < window_min_width && !NILP (w->parent))
1538 { 1538 {
1539 Fdelete_window (window); 1539 Fdelete_window (window);
1540 return; 1540 return;
1541 } 1541 }
1542 1542