File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -617,7 +617,7 @@ Otherwise to a not loading state."
617617(defun eca-chat--set-prompt (text )
618618 " Set the chat prompt to be TEXT."
619619 (-some-> (eca-chat--prompt-field-start-point) (goto-char ))
620- (delete-region (point ) (line-end-position ))
620+ (delete-region (point ) (point-max ))
621621 (insert text))
622622
623623(defun eca-chat--cycle-history (n )
@@ -834,8 +834,9 @@ the prompt/context line."
834834
835835(defun eca-chat--point-at-prompt-field-p ()
836836 " Return non-nil if point is at the prompt field area."
837- (eq (line-number-at-pos (point ))
838- (line-number-at-pos (eca-chat--prompt-field-start-point))))
837+ (let ((prompt-start (eca-chat--prompt-field-start-point)))
838+ (and prompt-start
839+ (>= (point ) prompt-start))))
839840
840841(defun eca-chat--header-line-string (session )
841842 " Update chat header line for SESSION."
You can’t perform that action at this time.
0 commit comments