Fix assertion failure in window_box_height (Bug#45737)
* lisp/window.el (window-sizable): Don't try to grow a mini window when the root window's minimum height is already larger than its actual height (Bug#45737).
This commit is contained in:
parent
27743e9e70
commit
55bc1560ac
1 changed files with 5 additions and 3 deletions
|
@ -1716,9 +1716,11 @@ interpret DELTA as pixels."
|
|||
(setq window (window-normalize-window window))
|
||||
(cond
|
||||
((< delta 0)
|
||||
(max (- (window-min-size window horizontal ignore pixelwise)
|
||||
(window-size window horizontal pixelwise))
|
||||
delta))
|
||||
(let ((min-size (window-min-size window horizontal ignore pixelwise))
|
||||
(size (window-size window horizontal pixelwise)))
|
||||
(if (<= size min-size)
|
||||
0
|
||||
(max (- min-size size) delta))))
|
||||
((> delta 0)
|
||||
(if (window-size-fixed-p window horizontal ignore)
|
||||
0
|
||||
|
|
Loading…
Add table
Reference in a new issue