Skip to content

Commit

Permalink
gptle--in-response should only consider 'response
Browse files Browse the repository at this point in the history
  • Loading branch information
psionic-k committed Feb 10, 2025
1 parent c83a011 commit ccee2e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gptel.el
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ FILE is assumed to exist and be a regular file."

(defun gptel--in-response-p (&optional pt)
"Check if position PT is inside a gptel response."
(get-char-property (or pt (point)) 'gptel))
(eq (get-char-property (or pt (point)) 'gptel) 'response))

(defun gptel--at-response-history-p (&optional pt)
"Check if gptel response at position PT has variants."
Expand Down

0 comments on commit ccee2e8

Please sign in to comment.