mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
fix(ivy): +counsel-rg-suppress-error-code-a
Corrects the signature of process-exit-status.
Amend: 6ef86098cb
This commit is contained in:
@ -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'
|
||||
|
Reference in New Issue
Block a user