mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-04-23 10:02:25 +00:00
console: remove comment about 'invalid' input (#15735)
All inputs are saved into history, including 'invalid' inputs.
This commit is contained in:
parent
5866626b08
commit
72e70bcec2
1 changed files with 1 additions and 2 deletions
|
|
@ -155,8 +155,7 @@ func (p *terminalPrompter) SetHistory(history []string) {
|
||||||
p.State.ReadHistory(strings.NewReader(strings.Join(history, "\n")))
|
p.State.ReadHistory(strings.NewReader(strings.Join(history, "\n")))
|
||||||
}
|
}
|
||||||
|
|
||||||
// AppendHistory appends an entry to the scrollback history. It should be called
|
// AppendHistory appends an entry to the scrollback history.
|
||||||
// if and only if the prompt to append was a valid command.
|
|
||||||
func (p *terminalPrompter) AppendHistory(command string) {
|
func (p *terminalPrompter) AppendHistory(command string) {
|
||||||
p.State.AppendHistory(command)
|
p.State.AppendHistory(command)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue