From e322b752972367519db9a44dffbf4cf489f43107 Mon Sep 17 00:00:00 2001 From: Matus Goljer Date: Thu, 13 Sep 2018 14:49:59 +0200 Subject: [PATCH] Do not signal error in case of exactly one match --- mc-mark-more.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mc-mark-more.el b/mc-mark-more.el index da8cedf..062afa3 100644 --- a/mc-mark-more.el +++ b/mc-mark-more.el @@ -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)))