branch: elpa/magit
commit 3d54ce511acf5be973c91434ea5596de6f2abc81
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: Jonas Bernoulli <jo...@bernoul.li>

    magit--refresh-buffer-set-positions: Cosmetics
---
 lisp/magit-mode.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/magit-mode.el b/lisp/magit-mode.el
index 9249e524d5..c02fb3ea88 100644
--- a/lisp/magit-mode.el
+++ b/lisp/magit-mode.el
@@ -1124,11 +1124,11 @@ Run hooks `magit-pre-refresh-hook' and 
`magit-post-refresh-hook'."
                 (list (selected-window))))))
 
 (defun magit--refresh-buffer-set-positions (positions)
-  (pcase-dolist (`(,window . ,args) positions)
+  (pcase-dolist (`(,window ,section ,line ,char) positions)
     (if (eq (current-buffer) (window-buffer window))
         (with-selected-window window
-          (apply #'magit-section-goto-successor args))
-      (apply #'magit-section-goto-successor args))))
+          (magit-section-goto-successor section line char))
+      (magit-section-goto-successor section line char))))
 
 (defun magit-revert-buffer (_ignore-auto _noconfirm)
   "Wrapper around `magit-refresh-buffer' suitable as `revert-buffer-function'."

Reply via email to