Commit 4ba9024d authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen
Browse files

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.
parent 8a4bb6b0
Pipeline #10623 failed with stages
in 14 minutes and 6 seconds
......@@ -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."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment