From 3d04971f53ded9d52fb1befbdf37f984da8b5758 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Wed, 24 Aug 2016 21:50:08 -0400 Subject: magit-log-select-guess-fixup-commit: Fix logic If point isn't reset at each message search, could miss more recent occurrence of message. --- lisp/km-magit.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/km-magit.el') diff --git a/lisp/km-magit.el b/lisp/km-magit.el index 4fed9c0..4ab9125 100644 --- a/lisp/km-magit.el +++ b/lisp/km-magit.el @@ -280,8 +280,8 @@ and 'squash!' titles." (when (not msgs) (user-error "No fixup or squash commits found")) ;; Find earliest commit. - (goto-char (point-min)) (dolist (msg msgs) + (goto-char (point-min)) (when (re-search-forward (concat "[a-z0-9]+ " msg "\n") nil t) (push (match-beginning 0) commit-pts)))) (if commit-pts -- cgit v1.2.3