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

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

[elpa] externals/org 975462e 1/2: Small fix to image width computation


From: ELPA Syncer
Subject: [elpa] externals/org 975462e 1/2: Small fix to image width computation
Date: Wed, 3 Nov 2021 12:57:23 -0400 (EDT)

branch: externals/org
commit 975462e653ebbd994203cb72654f661d8244439b
Author: S├ębastien Miquel <sebastien.miquel@posteo.eu>
Commit: Nicolas Goaziou <mail@nicolasgoaziou.fr>

    Small fix to image width computation
    
    org.el (org-display-inline-image--width): The variable
    display-line-numbers-width is nil by default.
---
 lisp/org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index 9e2fae1..cb1b58c 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16879,7 +16879,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) display-line-numbers-width))
+                           (- (window-text-width) (or 
display-line-numbers-width 0)))
                        (float (window-total-width)))))
         width)))
    ((numberp org-image-actual-width)



reply via email to

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