Skip to content

Commit

Permalink
Fix use of prefix arg in consult-ripgrep wrapper
Browse files Browse the repository at this point in the history
Fixes #866

Thanks @wangdiqi
  • Loading branch information
purcell committed Nov 3, 2024
1 parent d40ad68 commit d45c7cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lisp/init-minibuffer.el
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

(when (and (executable-find "rg"))
(defun sanityinc/consult-ripgrep-at-point (&optional dir initial)
(interactive (list prefix-arg (when-let ((s (symbol-at-point)))
(symbol-name s))))
(interactive (list current-prefix-arg (when-let ((s (symbol-at-point)))
(symbol-name s))))
(consult-ripgrep dir initial))
(sanityinc/no-consult-preview sanityinc/consult-ripgrep-at-point)
(global-set-key (kbd "M-?") 'sanityinc/consult-ripgrep-at-point))
Expand Down

0 comments on commit d45c7cc

Please sign in to comment.