From 4ba9024d44566e47d9624e3316eab7b936fd141f Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 4 May 2021 09:57:30 +0200 Subject: [PATCH] Ensure updating the animated image in all windows * lisp/image.el (image-show-frame): Simplify the window update -- pass in the buffer, which is a noop if the buffer isn't displayed. --- lisp/image.el | 4 +--- 1 file changed, 1 insertion(+), 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." -- 2.39.2