aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index a4c6d7ebad1..fcb163f42fa 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1936,8 +1936,10 @@ Returns the window displaying BUFFER.")
1936#endif 1936#endif
1937 window = Fget_largest_window (frames); 1937 window = Fget_largest_window (frames);
1938 1938
1939 /* If we got a tall enough full-width window, split it. */ 1939 /* If we got a tall enough full-width window that can be split,
1940 split it. */
1940 if (!NILP (window) 1941 if (!NILP (window)
1942 && ! FRAME_NO_SPLIT_P (XFRAME (XWINDOW (window)->frame))
1941 && window_height (window) >= split_height_threshold 1943 && window_height (window) >= split_height_threshold
1942 && (XFASTINT (XWINDOW (window)->width) 1944 && (XFASTINT (XWINDOW (window)->width)
1943 == FRAME_WIDTH (XFRAME (WINDOW_FRAME (XWINDOW (window)))))) 1945 == FRAME_WIDTH (XFRAME (WINDOW_FRAME (XWINDOW (window))))))
@@ -1945,8 +1947,10 @@ Returns the window displaying BUFFER.")
1945 else 1947 else
1946 { 1948 {
1947 window = Fget_lru_window (frames); 1949 window = Fget_lru_window (frames);
1948 /* If the LRU window is selected, and big enough, split it. */ 1950 /* If the LRU window is selected, and big enough,
1951 and can be split, split it. */
1949 if (!NILP (window) 1952 if (!NILP (window)
1953 && ! FRAME_NO_SPLIT_P (XFRAME (XWINDOW (window)->frame))
1950 && (EQ (window, selected_window) 1954 && (EQ (window, selected_window)
1951 || EQ (XWINDOW (window)->parent, Qnil)) 1955 || EQ (XWINDOW (window)->parent, Qnil))
1952 && window_height (window) >= window_min_height << 1) 1956 && window_height (window) >= window_min_height << 1)