Skip to content

Commit 99db92a

Browse files
author
xenodium
committed
Place earmuffs correctly in compose buffer names
1 parent 72394af commit 99db92a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

chatgpt-shell-prompt-compose.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,9 @@ If BACKWARDS is non-nil, go to previous interaction."
455455

456456
(defun chatgpt-shell-prompt-compose-buffer-name ()
457457
"Generate compose buffer name."
458-
(concat (chatgpt-shell--minibuffer-prompt) "compose"))
458+
(concat "*"
459+
(chatgpt-shell--minibuffer-prompt) "compose"
460+
"*"))
459461

460462
(defun chatgpt-shell-prompt-compose-swap-system-prompt ()
461463
"Swap the compose buffer's system prompt."

chatgpt-shell.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1302,7 +1302,10 @@ Could be a prompt or a source block."
13021302
(defun chatgpt-shell--minibuffer-prompt ()
13031303
"Construct a prompt for the minibuffer."
13041304
(if (chatgpt-shell--primary-buffer)
1305-
(concat (buffer-name (chatgpt-shell--primary-buffer)) "> ")
1305+
(concat (string-trim
1306+
(replace-regexp-in-string
1307+
"\\*" ""
1308+
(buffer-name (chatgpt-shell--primary-buffer)))) "> ")
13061309
(shell-maker-prompt
13071310
chatgpt-shell--config)))
13081311

0 commit comments

Comments
 (0)