Ver Fonte

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.
Matt Huszagh há 3 anos atrás
pai
commit
cd3e138ee5
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      lisp/org.el

+ 1 - 1
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)