cli: Fix another case of the prompt changing incorrectly

This commit is contained in:
John Brooks 2016-10-28 09:47:46 -06:00
parent 8baf1034f6
commit 0e350c85a4
1 changed files with 4 additions and 0 deletions

View File

@ -250,6 +250,10 @@ func (cc *conversationInputConfig) updatePromptTimer() {
}
func (ui *UI) setupConversationPrompt() {
if ui.Input.Config.Listener != nil {
ui.Input.Config.Listener.(*conversationInputConfig).Remove()
}
listener := &conversationInputConfig{
Input: ui.Input,
Config: ui.baseChatConfig.Clone(),