Browse Source

org: Tiny refactoring

* lisp/org.el (org-redisplay-inline-images): Save one line
of code.  Also make the docstring more precise.
Marco Wahl 7 months ago
parent
commit
1c6336652b
1 changed files with 3 additions and 4 deletions
  1. 3 4
      lisp/org.el

+ 3 - 4
lisp/org.el

@@ -15971,11 +15971,10 @@ INCLUDE-LINKED is passed to `org-display-inline-images'."
 		 "No images to display inline")))))
 
 (defun org-redisplay-inline-images ()
-  "Refresh the display of inline images."
+  "Assure display of inline images and refresh them."
   (interactive)
-  (if (not org-inline-image-overlays)
-      (org-toggle-inline-images)
-    (org-toggle-inline-images)
+  (org-toggle-inline-images)
+  (unless org-inline-image-overlays
     (org-toggle-inline-images)))
 
 ;; For without-x builds.