From 38cdb375dd8ecb9c1004eae750f079d00b6fd118 Mon Sep 17 00:00:00 2001 From: Richard Hart Date: Thu, 21 Dec 2017 15:18:46 -0500 Subject: [PATCH] Fixed out of date comment It appears `AppendHistory` is being called on invalid commands. I updated the comment to reflect this behavior. --- console/prompter.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/console/prompter.go b/console/prompter.go index ea03694d41..c477b48178 100644 --- a/console/prompter.go +++ b/console/prompter.go @@ -155,8 +155,7 @@ func (p *terminalPrompter) SetHistory(history []string) { p.State.ReadHistory(strings.NewReader(strings.Join(history, "\n"))) } -// AppendHistory appends an entry to the scrollback history. It should be called -// if and only if the prompt to append was a valid command. +// AppendHistory appends an entry to the scrollback history. func (p *terminalPrompter) AppendHistory(command string) { p.State.AppendHistory(command) }