commit c75095778c02e70fc7efa2aac5c77936b56d04db
parent bd8768630cb0554112bbf9b6010ae3bc1e131db6
Author: Oleh Krehel <ohwoeowho@gmail.com>
Date: Tue, 7 Nov 2017 20:13:27 +0100
org-download.el (org-download-rename-last-file): Add redisplay
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/org-download.el b/org-download.el
@@ -353,7 +353,8 @@ It's inserted before the image link and is used to annotate it.")
(org-download-replace-all
(file-name-nondirectory org-download-path-last-file)
(concat newname "." ext))
- (setq org-download-path-last-file newpath))))
+ (setq org-download-path-last-file newpath)
+ (org-display-inline-images))))
(defun org-download-replace-all (oldpath newpath)
"Function to search for the OLDPATH inside the buffer and replace it by the NEWPATH."