Fix args in 'window-text-pixel-size' call in 'fit-window-to-buffer'
* lisp/window.el (fit-window-to-buffer): Fix arguments in 'window-text-pixel-size' call. Copyright-paperwork-exempt: yes
This commit is contained in:
parent
cb1e30910e
commit
08d7d28d35
1 changed files with 2 additions and 2 deletions
|
@ -9113,8 +9113,8 @@ accessible position."
|
||||||
;; wider than its frame's pixel width, its height
|
;; wider than its frame's pixel width, its height
|
||||||
;; remains unaltered.
|
;; remains unaltered.
|
||||||
(width (+ (car (window-text-pixel-size
|
(width (+ (car (window-text-pixel-size
|
||||||
window (window-start) (point-max)
|
window (window-start window) nil
|
||||||
(frame-pixel-width)
|
(frame-pixel-width (window-frame window))
|
||||||
;; Add one line-height to assure that
|
;; Add one line-height to assure that
|
||||||
;; we're on the safe side. This
|
;; we're on the safe side. This
|
||||||
;; overshoots when the first line below
|
;; overshoots when the first line below
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue