Fixed out of date comment

It appears `AppendHistory` is being called on invalid commands. I updated the comment to reflect this behavior.
This commit is contained in:
Richard Hart 2017-12-21 15:18:46 -05:00 committed by GitHub
parent 9dbb8ef4aa
commit 38cdb375dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}