branch: elpa/git-commit commit 6d66ab34c54f2cd70aa1ffcb3b32a6daa31e689e Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
magit-refresh-get-relative-position: Fix regression [1: 95b432530a] started to use the point determined earlier, but we need the point after the movement from the previous two lines. Closes #4682. 1: 2022-03-25 95b432530a6b131e63bec7411ee768f1dee9f629 Do not set point when invoking context-menu --- lisp/magit-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/magit-mode.el b/lisp/magit-mode.el index fc34e300c7..935f0ee23d 100644 --- a/lisp/magit-mode.el +++ b/lisp/magit-mode.el @@ -1134,7 +1134,7 @@ Run hooks `magit-pre-refresh-hook' and `magit-post-refresh-hook'." (progn (goto-char (line-beginning-position)) (when (looking-at "^[-+]") (forward-line)) (while (looking-at "^[ @]") (forward-line)) - (let ((beg point)) + (let ((beg (point))) (cond ((looking-at "^[-+]") (forward-line) (while (looking-at "^[-+]") (forward-line))