aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-02-12 09:41:29 +0800
committerFelix Lange <fjl@twurst.com>2016-02-12 09:41:29 +0800
commit2abf1a36b9e7941a53622c0b65ef23a4f03418af (patch)
treea70b6181ab807c15e849923e141b0b9e84dff755 /cmd
parent4063d30b5e8c0a47d28c8a84169ff3c61512c4c9 (diff)
downloadgo-tangerine-2abf1a36b9e7941a53622c0b65ef23a4f03418af.tar
go-tangerine-2abf1a36b9e7941a53622c0b65ef23a4f03418af.tar.gz
go-tangerine-2abf1a36b9e7941a53622c0b65ef23a4f03418af.tar.bz2
go-tangerine-2abf1a36b9e7941a53622c0b65ef23a4f03418af.tar.lz
go-tangerine-2abf1a36b9e7941a53622c0b65ef23a4f03418af.tar.xz
go-tangerine-2abf1a36b9e7941a53622c0b65ef23a4f03418af.tar.zst
go-tangerine-2abf1a36b9e7941a53622c0b65ef23a4f03418af.zip
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.
Diffstat (limited to 'cmd')
-rw-r--r--cmd/geth/js.go1
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) })