summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Wahl <marcowahlsoft@gmail.com>2020-02-10 13:10:08 +0100
committerMarco Wahl <marcowahlsoft@gmail.com>2020-02-10 13:10:08 +0100
commit1c6336652bf153c838a730bb614f3882ccc748f4 (patch)
treef76c62d2be8a15f8eb678415356b96d975a57f16
parent63ca986bea57c59bdea4efbf049388c408b26cfc (diff)
downloadorg-mode-1c6336652bf153c838a730bb614f3882ccc748f4.tar.gz
org: Tiny refactoring
* lisp/org.el (org-redisplay-inline-images): Save one line of code. Also make the docstring more precise.
-rw-r--r--lisp/org.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/org.el b/lisp/org.el
index e52bd65..97fe25d 100644
--- a/lisp/org.el
+++ b/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.