cmd/geth: enable multi-line mode

This was requested by some users earlier but liner didn't support
it at the time. It does now.
This commit is contained in:
Felix Lange 2016-02-12 02:41:29 +01:00
parent 4063d30b5e
commit 2abf1a36b9
1 changed files with 1 additions and 0 deletions

View File

@ -168,6 +168,7 @@ func newLightweightJSRE(docRoot string, client rpc.Client, datadir string, inter
js.loadAutoCompletion()
lr.SetWordCompleter(apiWordCompleterWithContext(js))
lr.SetTabCompletionStyle(liner.TabPrints)
lr.SetMultiLineMode(true)
js.prompter = lr
js.atexit = func() {
js.withHistory(datadir, func(hist *os.File) { hist.Truncate(0); lr.WriteHistory(hist) })