Merge pull request #2269 from obscuren/repl-multi-line

cmd/geth: removed multiline support
This commit is contained in:
Jeffrey Wilcke 2016-02-29 15:04:33 +01:00
commit 7cbcae3fac

View File

@ -119,7 +119,6 @@ func newLightweightJSRE(docRoot string, client rpc.Client, datadir string, inter
lr.SetCtrlCAborts(true) lr.SetCtrlCAborts(true)
lr.SetWordCompleter(makeCompleter(js)) lr.SetWordCompleter(makeCompleter(js))
lr.SetTabCompletionStyle(liner.TabPrints) lr.SetTabCompletionStyle(liner.TabPrints)
lr.SetMultiLineMode(true)
js.prompter = lr js.prompter = lr
js.atexit = func() { js.atexit = func() {
js.withHistory(datadir, func(hist *os.File) { hist.Truncate(0); lr.WriteHistory(hist) }) js.withHistory(datadir, func(hist *os.File) { hist.Truncate(0); lr.WriteHistory(hist) })