Skip to content

Commit ac09e8e

Browse files
committed
* lisp/vc/smerge-mode.el (smerge-match-conflict): Fix bug#38456
This situation is not an internal error, but a perfectly normal occurrence, so a `cl-assert` is not right
1 parent 7e37e61 commit ac09e8e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lisp/vc/smerge-mode.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,10 @@ An error is raised if not inside a conflict."
797797
(filename (or (match-string 1) ""))
798798

799799
(_ (re-search-forward smerge-end-re))
800-
(_ (cl-assert (< orig-point (match-end 0))))
800+
(_ (when (< (match-end 0) orig-point)
801+
;; Point is not within the conflict we found,
802+
;; so this conflict is not ours.
803+
(signal 'search-failed (list smerge-begin-re))))
801804

802805
(lower-end (match-beginning 0))
803806
(end (match-end 0))

0 commit comments

Comments
 (0)