2 Commits

Author SHA1 Message Date
Matus Goljer e803180932 Use the first created cursor 2018-09-13 14:54:13 +02:00
Matus Goljer e322b75297 Do not signal error in case of exactly one match 2018-09-13 14:49:59 +02:00
+1 -1
View File
@@ -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 (last (mc/all-fake-cursors)))))
(if (not first)
(error "Search failed for %S" search)
(mc/pop-state-from-overlay first)))