fixed bug where history file was create in cwd

release/0.9.36
Bas van Kervel 10 years ago committed by Bas van Kervel
parent ce5c94e471
commit 29297d3b82
  1. 2
      cmd/geth/js.go

@ -157,7 +157,7 @@ func newLightweightJSRE(libPath string, client comms.EthereumClient, interactive
js.prompter = dumbterm{bufio.NewReader(os.Stdin)}
} else {
lr := liner.NewLiner()
//js.withHistory(func(hist *os.File) { lr.ReadHistory(hist) })
js.withHistory(func(hist *os.File) { lr.ReadHistory(hist) })
lr.SetCtrlCAborts(true)
js.loadAutoCompletion()
lr.SetWordCompleter(apiWordCompleter)

Loading…
Cancel
Save