diff options
| author | Justin Burkett | 2020-03-05 09:10:03 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2020-03-05 09:10:03 +0100 |
| commit | 08d7d28d35aa0c755d6f77b382592ba31552adc2 (patch) | |
| tree | 58fc972b4dbaf51aad53e74ebccd5903253368d0 | |
| parent | cb1e30910ea7972ea82e28545782c75496d7b6d3 (diff) | |
| download | emacs-08d7d28d35aa0c755d6f77b382592ba31552adc2.tar.gz emacs-08d7d28d35aa0c755d6f77b382592ba31552adc2.zip | |
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
| -rw-r--r-- | lisp/window.el | 4 |
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." | |||
| 9113 | ;; wider than its frame's pixel width, its height | 9113 | ;; wider than its frame's pixel width, its height |
| 9114 | ;; remains unaltered. | 9114 | ;; remains unaltered. |
| 9115 | (width (+ (car (window-text-pixel-size | 9115 | (width (+ (car (window-text-pixel-size |
| 9116 | window (window-start) (point-max) | 9116 | window (window-start window) nil |
| 9117 | (frame-pixel-width) | 9117 | (frame-pixel-width (window-frame window)) |
| 9118 | ;; Add one line-height to assure that | 9118 | ;; Add one line-height to assure that |
| 9119 | ;; we're on the safe side. This | 9119 | ;; we're on the safe side. This |
| 9120 | ;; overshoots when the first line below | 9120 | ;; overshoots when the first line below |