diff options
Diffstat (limited to 'cmd/geth')
-rw-r--r-- | cmd/geth/js.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/geth/js.go b/cmd/geth/js.go index ebbf55e50..62a3a69bc 100644 --- a/cmd/geth/js.go +++ b/cmd/geth/js.go @@ -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) }) |