diff --git a/mc-mark-more.el b/mc-mark-more.el index 7e240a1..22110c6 100644 --- a/mc-mark-more.el +++ b/mc-mark-more.el @@ -270,7 +270,8 @@ With zero ARG, skip the last one and mark next." (case-fold-search nil)) (mc/remove-fake-cursors) (goto-char beg) - (while (search-forward search end t) + (while (and (not (string= search "")) + (search-forward search end t)) (push-mark (match-beginning 0)) (mc/create-fake-cursor-at-point)) (let ((first (mc/furthest-cursor-before-point)))