emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-27 08d7d28: Fix args in 'window-text-pixel-size' call in 'fit-wind


From: Martin Rudalics
Subject: emacs-27 08d7d28: Fix args in 'window-text-pixel-size' call in 'fit-window-to-buffer'
Date: Thu, 5 Mar 2020 03:11:15 -0500 (EST)

branch: emacs-27
commit 08d7d28d35aa0c755d6f77b382592ba31552adc2
Author: Justin Burkett <address@hidden>
Commit: Martin Rudalics <address@hidden>

    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
---
 lisp/window.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/window.el b/lisp/window.el
index ceab43f..5c4ff83 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]