summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/image.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/image.el b/lisp/image.el
index 643f9ddf834..ee152940311 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -875,9 +875,7 @@ do not check N is within the range of frames present in the image."
(setq n (min n (1- (car (plist-get (cdr image)
:animate-multi-frame-data)))))))
(plist-put (cdr image) :index n)
- (when-let ((window
- (get-buffer-window (plist-get (cdr image) :animate-buffer) t)))
- (force-window-update window)))
+ (force-window-update (plist-get (cdr image) :animate-buffer)))
(defun image-animate-get-speed (image)
"Return the speed factor for animating IMAGE."