Ver código fonte

org: Tiny refactoring

* lisp/org.el (org-redisplay-inline-images): Save one line
of code.  Also make the docstring more precise.
Marco Wahl 5 anos atrás
pai
commit
1c6336652b
1 arquivos alterados com 3 adições e 4 exclusões
  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.