summaryrefslogtreecommitdiff
path: root/lisp/image-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/image-mode.el')
-rw-r--r--lisp/image-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/image-mode.el b/lisp/image-mode.el
index e49ca27db72..258f852a4d6 100644
--- a/lisp/image-mode.el
+++ b/lisp/image-mode.el
@@ -140,7 +140,8 @@ and showing the image as an image."
(let* ((image
(if (and (buffer-file-name)
(not (buffer-modified-p)))
- (create-image (buffer-file-name))
+ (progn (clear-image-cache)
+ (create-image (buffer-file-name)))
(create-image
(string-make-unibyte
(buffer-substring-no-properties (point-min) (point-max)))