summaryrefslogtreecommitdiff
path: root/lisp/window.el
diff options
context:
space:
mode:
authorJustin Burkett <justin@burkett.cc>2020-03-05 09:10:03 +0100
committerMartin Rudalics <rudalics@gmx.at>2020-03-05 09:10:03 +0100
commit08d7d28d35aa0c755d6f77b382592ba31552adc2 (patch)
tree58fc972b4dbaf51aad53e74ebccd5903253368d0 /lisp/window.el
parentcb1e30910ea7972ea82e28545782c75496d7b6d3 (diff)
downloademacs-08d7d28d35aa0c755d6f77b382592ba31552adc2.tar.gz
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
Diffstat (limited to 'lisp/window.el')
-rw-r--r--lisp/window.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/window.el b/lisp/window.el
index ceab43f7cd3..5c4ff83d82d 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -9113,8 +9113,8 @@ accessible position."
;; wider than its frame's pixel width, its height
;; remains unaltered.
(width (+ (car (window-text-pixel-size
- window (window-start) (point-max)
- (frame-pixel-width)
+ window (window-start window) nil
+ (frame-pixel-width (window-frame window))
;; Add one line-height to assure that
;; we're on the safe side. This
;; overshoots when the first line below