emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/gptel 22f7043c32 242/273: gptel: Fix gptel-end-of-response


From: ELPA Syncer
Subject: [nongnu] elpa/gptel 22f7043c32 242/273: gptel: Fix gptel-end-of-response
Date: Wed, 1 May 2024 10:02:40 -0400 (EDT)

branch: elpa/gptel
commit 22f7043c328570fb921fd6a38e767eeffe4a7986
Author: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Commit: Karthik Chikmagalur <karthikchikmagalur@gmail.com>

    gptel: Fix gptel-end-of-response
    
    * gptel.el (gptel-end-of-response): Handle non-interactive case
    where one of the function arguments can be nil.  Fix #262.
---
 gptel.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gptel.el b/gptel.el
index a3da9fdb1b..758708284b 100644
--- a/gptel.el
+++ b/gptel.el
@@ -557,6 +557,7 @@ Note: This will move the cursor."
   "Move point to the end of the LLM response ARG times."
   (interactive (list nil nil
                      (prefix-numeric-value current-prefix-arg)))
+  (unless arg (setq arg 1))
   (let ((search (if (> arg 0)
                     #'text-property-search-forward
                   #'text-property-search-backward)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]