branch: elpa/gptel
commit 0a7744610814da90a27cb8f6a090915f61bde4b8
Author: Karthik Chikmagalur <karthikchikmaga...@gmail.com>
Commit: Karthik Chikmagalur <karthikchikmaga...@gmail.com>

    gptel: Fix char-before comparison with eql in preset-capf
    
    * gptel.el (gptel-preset-capf): Handle beginning of buffer case by
    comparing characters with eql instead of =.
---
 gptel.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gptel.el b/gptel.el
index ef410eaa06..d22de703ba 100644
--- a/gptel.el
+++ b/gptel.el
@@ -3731,7 +3731,7 @@ Add this to `completion-at-point-functions'."
   (and gptel--known-presets
        (save-excursion
          (let ((num (- (skip-syntax-backward "w_"))))
-           (when (= (char-before) ?@)
+           (when (eql (char-before) ?@)
              (list (point) (+ (point) num)
                    gptel--known-presets
                    :exclusive 'no

Reply via email to