From e8031809328a8395670a6fa6814ec745d6fd7742 Mon Sep 17 00:00:00 2001 From: Matus Goljer Date: Thu, 13 Sep 2018 14:54:13 +0200 Subject: [PATCH] Use the first created cursor --- 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 062afa3..75c028a 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 (car (mc/all-fake-cursors)))) + (let ((first (car (last (mc/all-fake-cursors))))) (if (not first) (error "Search failed for %S" search) (mc/pop-state-from-overlay first)))