branch: elpa/gptel
commit 96199593c107767ffe0b59ab2a1f996c112e4fdf
Author: Karthik Chikmagalur <[email protected]>
Commit: Karthik Chikmagalur <[email protected]>
gptel-transient: Fix crowdsourced prompt editing callback
* gptel-transient.el (gptel--read-crowdsourced-prompt):
`gptel--edit-directive' was updated to call its callback with an
argument. Adjust the crowdsourced prompts editing flow to
match. (#1222)
---
gptel-transient.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gptel-transient.el b/gptel-transient.el
index ce748277fbf..881d3478d57 100644
--- a/gptel-transient.el
+++ b/gptel-transient.el
@@ -1868,7 +1868,7 @@ This uses the prompts in the variable
(gptel--set-with-scope
'gptel--system-message prompt gptel--set-buffer-locally)
(gptel--edit-directive 'gptel--system-message
- :callback (lambda () (call-interactively #'gptel-menu)))))
+ :callback (lambda (_) (call-interactively #'gptel-menu)))))
(message "No prompts available.")))
(transient-define-suffix gptel--suffix-system-message (&optional cancel)