branch: elpa/gptel
commit 943f0eb9cb53469c54c8123ac219575611dd1445
Author: Karthik Chikmagalur <[email protected]>
Commit: Karthik Chikmagalur <[email protected]>

    gptel-request: Fix regression with prompt end position
    
    * gptel-request.el (gptel-request): Fix regression where the
    default prompt end position was changed from the end of the
    word (determined by `gptel--at-word-end') to (point) during the
    prompt-buffer refactoring.
---
 gptel-request.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gptel-request.el b/gptel-request.el
index 041e03aea15..43bca09a340 100644
--- a/gptel-request.el
+++ b/gptel-request.el
@@ -1966,7 +1966,7 @@ be used to rerun or continue the request at a later time."
          (prompt-buffer
           (cond                       ;prompt from buffer or explicitly 
supplied
            ((null prompt)
-            (gptel--create-prompt-buffer (point)))
+            (gptel--create-prompt-buffer start-marker))
            ((stringp prompt)
             (gptel--with-buffer-copy buffer nil nil
               (insert prompt)

Reply via email to