emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/org cd3e138: org.el: Improve inline image width calcula


From: ELPA Syncer
Subject: [elpa] externals/org cd3e138: org.el: Improve inline image width calculation
Date: Sun, 21 Nov 2021 14:57:26 -0500 (EST)

branch: externals/org
commit cd3e138ee51b33064f71ad8419093bac63f00fcb
Author: Matt Huszagh <huszaghmatt@gmail.com>
Commit: TEC <tec@tecosaur.com>

    org.el: Improve inline image width calculation
    
    * lisp/org.el (org-display-inline-image--width): When
    display-line-numbers-width is nil, the width is computed dynamically.
    This does not mean that the line number width is necessarily 0.
---
 lisp/org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index eeefb4a..331bd9f 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16880,7 +16880,7 @@ buffer boundaries with possible narrowing."
                     (/ (or (and (bound-and-true-p visual-fill-column-mode)
                                 (or visual-fill-column-width 
auto-fill-function))
                            (when auto-fill-function fill-column)
-                           (- (window-text-width) (or 
display-line-numbers-width 0)))
+                           (- (window-text-width) (line-number-display-width)))
                        (float (window-total-width)))))
         width)))
    ((numberp org-image-actual-width)



reply via email to

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