fix(ivy): +counsel-rg-suppress-error-code-a
Corrects the signature of process-exit-status.
Amend: 6ef86098cb
This commit is contained in:
parent
6ef86098cb
commit
234cc27b77
1 changed files with 3 additions and 2 deletions
|
@ -221,8 +221,9 @@ counsel-rg to discard the rest of the output to display an error.
|
|||
This advice suppresses the error code, so you can still operate on whatever
|
||||
workable results ripgrep produces, despite the error."
|
||||
:around #'counsel-rg
|
||||
(letf! (defun process-exit-status (code)
|
||||
(funcall process-exit-status (if (= code 2) 0 code)))
|
||||
(letf! (defun process-exit-status (proc)
|
||||
(let ((code (funcall process-exit-status proc)))
|
||||
(if (= code 2) 0 code)))
|
||||
(apply fn args)))
|
||||
|
||||
;; Integrate with `helpful'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue