diff options
author | Felix Lange <fjl@twurst.com> | 2016-02-12 09:41:29 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-02-12 09:41:29 +0800 |
commit | 2abf1a36b9e7941a53622c0b65ef23a4f03418af (patch) | |
tree | a70b6181ab807c15e849923e141b0b9e84dff755 | |
parent | 4063d30b5e8c0a47d28c8a84169ff3c61512c4c9 (diff) | |
download | dexon-2abf1a36b9e7941a53622c0b65ef23a4f03418af.tar dexon-2abf1a36b9e7941a53622c0b65ef23a4f03418af.tar.gz dexon-2abf1a36b9e7941a53622c0b65ef23a4f03418af.tar.bz2 dexon-2abf1a36b9e7941a53622c0b65ef23a4f03418af.tar.lz dexon-2abf1a36b9e7941a53622c0b65ef23a4f03418af.tar.xz dexon-2abf1a36b9e7941a53622c0b65ef23a4f03418af.tar.zst dexon-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.
-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) }) |