Small fix to image width computation

org.el (org-display-inline-image--width): The variable
display-line-numbers-width is nil by default.
This commit is contained in:
Sébastien Miquel 2021-10-23 13:28:59 +02:00 committed by Nicolas Goaziou
parent 74b1eefa5e
commit 975462e653
1 changed files with 1 additions and 1 deletions

View File

@ -16879,7 +16879,7 @@ buffer boundaries with possible narrowing."
(/ (or (and (bound-and-true-p visual-fill-column-mode) (/ (or (and (bound-and-true-p visual-fill-column-mode)
(or visual-fill-column-width auto-fill-function)) (or visual-fill-column-width auto-fill-function))
(when auto-fill-function fill-column) (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))))) (float (window-total-width)))))
width))) width)))
((numberp org-image-actual-width) ((numberp org-image-actual-width)