forked from cerc-io/plugeth
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:
parent
4063d30b5e
commit
2abf1a36b9
@ -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) })
|
||||
|
Loading…
Reference in New Issue
Block a user