diff options
author | Kyle Meyer <kyle@kyleam.com> | 2016-08-24 21:50:08 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2016-08-24 21:50:08 -0400 |
commit | 3d04971f53ded9d52fb1befbdf37f984da8b5758 (patch) | |
tree | edced387ba474341fb29256ac4c41be5e7f1c126 | |
parent | f0792092b7a1c27b53919491255df499bb7a0b7b (diff) | |
download | emacs.d-3d04971f53ded9d52fb1befbdf37f984da8b5758.tar.gz |
magit-log-select-guess-fixup-commit: Fix logic
If point isn't reset at each message search, could miss more recent
occurrence of message.
-rw-r--r-- | lisp/km-magit.el | 2 |
1 files changed, 1 insertions, 1 deletions
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 |