# HG changeset patch # User Richard M. Stallman # Date 782378790 0 # Node ID cf4f4c8a3ef6b8cce83d7f5af3b454adb27cff88 # Parent fef2cfcbbe37d58d4b3e43559cc2a4ac5be3dc5c (Fdisplay_buffer): In desperation case of looking for something to split, verify that a window's frame is splittable. diff -r fef2cfcbbe37 -r cf4f4c8a3ef6 src/window.c --- a/src/window.c Mon Oct 17 07:25:44 1994 +0000 +++ b/src/window.c Mon Oct 17 07:26:30 1994 +0000 @@ -1936,8 +1936,10 @@ #endif window = Fget_largest_window (frames); - /* If we got a tall enough full-width window, split it. */ + /* If we got a tall enough full-width window that can be split, + split it. */ if (!NILP (window) + && ! FRAME_NO_SPLIT_P (XFRAME (XWINDOW (window)->frame)) && window_height (window) >= split_height_threshold && (XFASTINT (XWINDOW (window)->width) == FRAME_WIDTH (XFRAME (WINDOW_FRAME (XWINDOW (window)))))) @@ -1945,8 +1947,10 @@ else { window = Fget_lru_window (frames); - /* If the LRU window is selected, and big enough, split it. */ + /* If the LRU window is selected, and big enough, + and can be split, split it. */ if (!NILP (window) + && ! FRAME_NO_SPLIT_P (XFRAME (XWINDOW (window)->frame)) && (EQ (window, selected_window) || EQ (XWINDOW (window)->parent, Qnil)) && window_height (window) >= window_min_height << 1)