cli: Fix another case of the prompt changing incorrectly
This commit is contained in:
parent
8baf1034f6
commit
0e350c85a4
|
@ -250,6 +250,10 @@ func (cc *conversationInputConfig) updatePromptTimer() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ui *UI) setupConversationPrompt() {
|
func (ui *UI) setupConversationPrompt() {
|
||||||
|
if ui.Input.Config.Listener != nil {
|
||||||
|
ui.Input.Config.Listener.(*conversationInputConfig).Remove()
|
||||||
|
}
|
||||||
|
|
||||||
listener := &conversationInputConfig{
|
listener := &conversationInputConfig{
|
||||||
Input: ui.Input,
|
Input: ui.Input,
|
||||||
Config: ui.baseChatConfig.Clone(),
|
Config: ui.baseChatConfig.Clone(),
|
||||||
|
|
Loading…
Reference in New Issue