org: Tiny refactoring

* lisp/org.el (org-redisplay-inline-images): Save one line
of code.  Also make the docstring more precise.
This commit is contained in:
Marco Wahl 2020-02-10 13:10:08 +01:00
parent 63ca986bea
commit 1c6336652b
1 changed files with 3 additions and 4 deletions

View File

@ -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.