From 2abf1a36b9e7941a53622c0b65ef23a4f03418af Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 12 Feb 2016 02:41:29 +0100 Subject: 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. --- cmd/geth/js.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd') 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) }) -- cgit v1.2.3