Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jyp committed Mar 14, 2024
1 parent 72c31c2 commit 9e00672
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions boon-search.el
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,17 @@ then `boon-cur-pattern' is searched."
(boon-navigate nil))

;;;###autoload
(defun boon-search-char-forward (count char)
(defun boon-search-char-forward (count)
""
(interactive "pc")
(mc/execute-command-for-all-fake-cursors
(lambda () (interactive)
(search-forward (string char) (line-end-position) nil count))))
(interactive "p")
(let ((char (read-char)))
(search-forward (string char) (line-end-position) nil count)))

;;;###autoload
(defun boon-search-char-backward (count char)
(defun boon-search-char-backward (count)
""
(interactive "pc")
(boon-search-char-forward (if count (- count) (- 1)) char))
(interactive "p")
(boon-search-char-forward (if count (- count) (- 1))))


(provide 'boon-search)
Expand Down

0 comments on commit 9e00672

Please sign in to comment.