mirror of
https://github.com/magnars/multiple-cursors.el.git
synced 2025-10-13 05:03:03 +00:00
Do not signal error in case of exactly one match
This commit is contained in:
parent
6a7c3c0853
commit
e322b75297
@ -396,7 +396,7 @@ With zero ARG, skip the last one and mark next."
|
||||
(while (search-forward search end t)
|
||||
(push-mark (match-beginning 0))
|
||||
(mc/create-fake-cursor-at-point))
|
||||
(let ((first (mc/furthest-cursor-before-point)))
|
||||
(let ((first (car (mc/all-fake-cursors))))
|
||||
(if (not first)
|
||||
(error "Search failed for %S" search)
|
||||
(mc/pop-state-from-overlay first)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user