From 975462e653ebbd994203cb72654f661d8244439b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Miquel?= Date: Sat, 23 Oct 2021 13:28:59 +0200 Subject: [PATCH] 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 9e2fae111..cb1b58c51 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)