diff options
| -rw-r--r-- | lisp/window.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/window.el b/lisp/window.el index e372ef8b9bb..f24e581ba1e 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -5899,6 +5899,16 @@ changed by this function." | |||
| 5899 | window (- (if new-parent 1.0 (window-normal-size window horizontal)) | 5899 | window (- (if new-parent 1.0 (window-normal-size window horizontal)) |
| 5900 | new-normal))) | 5900 | new-normal))) |
| 5901 | 5901 | ||
| 5902 | (unless horizontal | ||
| 5903 | (let ((quit-restore (window-parameter window 'quit-restore))) | ||
| 5904 | (when quit-restore | ||
| 5905 | (let ((quad (nth 1 quit-restore))) | ||
| 5906 | (when (and (listp quad) (integerp (nth 3 quad))) | ||
| 5907 | ;; When WINDOW has a 'quit-restore' parameter that | ||
| 5908 | ;; specifies a previous height to restore, remove that | ||
| 5909 | ;; - it does more harm than good now (Bug#78835). | ||
| 5910 | (setf (nth 3 quad) nil)))))) | ||
| 5911 | |||
| 5902 | (let ((new (split-window-internal | 5912 | (let ((new (split-window-internal |
| 5903 | window new-pixel-size side new-normal refer))) | 5913 | window new-pixel-size side new-normal refer))) |
| 5904 | (window--pixel-to-total frame horizontal) | 5914 | (window--pixel-to-total frame horizontal) |