mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Fix bug when splitting a frame's root window (Bug#73627)
* lisp/window.el (split-window): Split main window of WINDOW's frame when that frame has side windows (Bug#73627).
This commit is contained in:
parent
7d9513f9c4
commit
a58dc58fec
1 changed files with 7 additions and 0 deletions
|
|
@ -5599,6 +5599,13 @@ frame. The selected window is not changed by this function."
|
|||
(setq atom-root (window-atom-root window))
|
||||
(not (eq atom-root window)))
|
||||
(throw 'done (split-window atom-root size side pixelwise)))
|
||||
;; If WINDOW's frame has a side window and WINDOW specifies the
|
||||
;; frame's root window, split the frame's main window instead
|
||||
;; (Bug#73627).
|
||||
((and (eq window (frame-root-window frame))
|
||||
(window-with-parameter 'window-side nil frame))
|
||||
(throw 'done (split-window (window-main-window frame)
|
||||
size side pixelwise)))
|
||||
;; If WINDOW is a side window or its first or last child is a
|
||||
;; side window, throw an error unless `window-combination-resize'
|
||||
;; equals 'side.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue