aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBas van Kervel <basvankervel@gmail.com>2015-06-19 19:05:38 +0800
committerBas van Kervel <bas@ethdev.com>2015-06-22 15:17:09 +0800
commit29297d3b82eae4d4d23e86cfebec61abf96fffda (patch)
tree26601b581e8306ceb359ca076afc701e6de30e82
parentce5c94e4719586bbf81906cb90104babf79af0fe (diff)
downloadgo-tangerine-29297d3b82eae4d4d23e86cfebec61abf96fffda.tar
go-tangerine-29297d3b82eae4d4d23e86cfebec61abf96fffda.tar.gz
go-tangerine-29297d3b82eae4d4d23e86cfebec61abf96fffda.tar.bz2
go-tangerine-29297d3b82eae4d4d23e86cfebec61abf96fffda.tar.lz
go-tangerine-29297d3b82eae4d4d23e86cfebec61abf96fffda.tar.xz
go-tangerine-29297d3b82eae4d4d23e86cfebec61abf96fffda.tar.zst
go-tangerine-29297d3b82eae4d4d23e86cfebec61abf96fffda.zip
fixed bug where history file was create in cwd
-rw-r--r--cmd/geth/js.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/geth/js.go b/cmd/geth/js.go
index 38ef59583..6e4e3e0c1 100644
--- a/cmd/geth/js.go
+++ b/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)