emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/markdown-mode 26425d6901 1/3: clear-image-cache when remov


From: ELPA Syncer
Subject: [nongnu] elpa/markdown-mode 26425d6901 1/3: clear-image-cache when remove inline image
Date: Sat, 28 Jan 2023 06:01:24 -0500 (EST)

branch: elpa/markdown-mode
commit 26425d690168d1d67ee764bb4483421f4b379523
Author: kimim <kimi.im@outlook.com>
Commit: kimim <kimi.im@outlook.com>

    clear-image-cache when remove inline image
---
 markdown-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/markdown-mode.el b/markdown-mode.el
index 0133e07d3c..7774a343c6 100644
--- a/markdown-mode.el
+++ b/markdown-mode.el
@@ -8605,7 +8605,8 @@ This can be toggled with `markdown-toggle-inline-images'
 or \\[markdown-toggle-inline-images]."
   (interactive)
   (mapc #'delete-overlay markdown-inline-image-overlays)
-  (setq markdown-inline-image-overlays nil))
+  (setq markdown-inline-image-overlays nil)
+  (when (fboundp 'clear-image-cache) (clear-image-cache)))
 
 (defcustom markdown-display-remote-images nil
   "If non-nil, download and display remote images.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]