branch: elpa/gptel
commit 96774809486ad32a79f7883e8fbc4a44a8708d96
Author: Sonnicon <[email protected]>
Commit: GitHub <[email protected]>
gptel-context: Fix gptel-context-remove-all message (#1185)
gptel-context.el (gptel-context-remove-all): Stop the context removal
success message from being displayed when confirmation is rejected.
---
gptel-context.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gptel-context.el b/gptel-context.el
index 08deee69a02..f243ac50373 100644
--- a/gptel-context.el
+++ b/gptel-context.el
@@ -364,8 +364,8 @@ afterwards."
if (bufferp source) do ;Buffers and buffer regions
(mapc #'gptel-context-remove (plist-get spec :overlays))
else do (gptel-context-remove source) ;files or other types
- finally do (setq gptel-context nil)))
- (when verbose (message "Removed all gptel context sources."))))
+ finally do (setq gptel-context nil))
+ (when verbose (message "Removed all gptel context sources.")))))
;;; Context wrap
(defun gptel-context--make-overlay (start end &optional advance)