Skip to content

Commit 040ed5a

Browse files
committed
Improve flickering of --- on progress text
1 parent dc2dbdd commit 040ed5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

eca-chat.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ Must be a positive integer."
611611
(let ((prompt-area-ov (make-overlay (line-beginning-position) (1+ (line-beginning-position)) (current-buffer))))
612612
(overlay-put prompt-area-ov 'eca-chat-prompt-area t))
613613
(eca-chat--insert eca-chat-prompt-separator)
614-
(let ((progress-area-ov (make-overlay (line-beginning-position) (line-end-position) (current-buffer) nil t)))
614+
(let ((progress-area-ov (make-overlay (1+ (point)) (line-end-position) (current-buffer) nil t)))
615615
(overlay-put progress-area-ov 'eca-chat-progress-area t)
616616
(eca-chat--insert "\n")
617617
(move-overlay progress-area-ov (overlay-start progress-area-ov) (1- (overlay-end progress-area-ov))))
@@ -1278,8 +1278,8 @@ Show parent upwards if HIDE-FILENAME? is non nil."
12781278
(goto-char (overlay-start ov))
12791279
(delete-region (point) (overlay-end ov)))
12801280
(eca-chat--insert (propertize (if (string-empty-p eca-chat--progress-text)
1281-
eca-chat-prompt-separator
1282-
(concat eca-chat-prompt-separator "\n" eca-chat--progress-text))
1281+
""
1282+
(concat "\n" eca-chat--progress-text))
12831283
'font-lock-face 'eca-chat-system-messages-face)
12841284
eca-chat--spinner-string)))))
12851285

0 commit comments

Comments
 (0)