Commit 2abf1a36 authored by Felix Lange's avatar Felix Lange

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.
parent 4063d30b
......@@ -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) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment