From 234cc27b77d2da72841225a5770961a4229f70e7 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 10 Jul 2024 04:02:21 -0400 Subject: [PATCH] fix(ivy): +counsel-rg-suppress-error-code-a Corrects the signature of process-exit-status. Amend: 6ef86098cb45 --- modules/completion/ivy/config.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/completion/ivy/config.el b/modules/completion/ivy/config.el index 3372ab758..308e29708 100644 --- a/modules/completion/ivy/config.el +++ b/modules/completion/ivy/config.el @@ -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'