mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-14 12:06:40 +00:00
fixed bug where history file was create in cwd
This commit is contained in:
parent
ce5c94e471
commit
29297d3b82
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ func newLightweightJSRE(libPath string, client comms.EthereumClient, interactive
|
||||||
js.prompter = dumbterm{bufio.NewReader(os.Stdin)}
|
js.prompter = dumbterm{bufio.NewReader(os.Stdin)}
|
||||||
} else {
|
} else {
|
||||||
lr := liner.NewLiner()
|
lr := liner.NewLiner()
|
||||||
//js.withHistory(func(hist *os.File) { lr.ReadHistory(hist) })
|
js.withHistory(func(hist *os.File) { lr.ReadHistory(hist) })
|
||||||
lr.SetCtrlCAborts(true)
|
lr.SetCtrlCAborts(true)
|
||||||
js.loadAutoCompletion()
|
js.loadAutoCompletion()
|
||||||
lr.SetWordCompleter(apiWordCompleter)
|
lr.SetWordCompleter(apiWordCompleter)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue