Skip to content

Commit

Permalink
add message when there are no more matches
Browse files Browse the repository at this point in the history
  • Loading branch information
Book-reader committed Sep 6, 2024
1 parent 78abd49 commit b5c9659
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions extensions/multiple-cursors/multiple-cursors.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@

(dolist (point (buffer-cursors (current-buffer)))
(with-point ((point point))
(when (search-next-matched point 1)
(setf cursor (make-fake-cursor point))
(setf (point-charpos point) (- (point-charpos point) (- (point-charpos end) (point-charpos start))))
(set-cursor-mark cursor point))))
(isearch-abort)
)
(if (search-next-matched point 1)
(progn (setf cursor (make-fake-cursor point))
(setf (point-charpos point) (- (point-charpos point) (- (point-charpos end) (point-charpos start))))
(set-cursor-mark cursor point))
(message "No more matches"))))
(isearch-abort))

(defun garbage-collection-cursors ()
(clear-duplicate-cursors (current-buffer)))
Expand Down

0 comments on commit b5c9659

Please sign in to comment.