aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum/repl_darwin.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-24 16:09:02 +0800
committerobscuren <geffobscura@gmail.com>2014-06-24 16:09:02 +0800
commitfd1ddbce6892e3f0e09eec68687b6ef34b216888 (patch)
tree6f5e801f84083fd3de487769ebedcc6981416d33 /ethereum/repl_darwin.go
parenta13aa873c205f35d3d90adf9da4c6355499fff1b (diff)
downloadgo-tangerine-fd1ddbce6892e3f0e09eec68687b6ef34b216888.tar.gz
go-tangerine-fd1ddbce6892e3f0e09eec68687b6ef34b216888.tar.zst
go-tangerine-fd1ddbce6892e3f0e09eec68687b6ef34b216888.zip
Save repl history to file and recall on next session
Diffstat (limited to 'ethereum/repl_darwin.go')
-rw-r--r--ethereum/repl_darwin.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/ethereum/repl_darwin.go b/ethereum/repl_darwin.go
index b61d4edd7..62b40059a 100644
--- a/ethereum/repl_darwin.go
+++ b/ethereum/repl_darwin.go
@@ -102,7 +102,9 @@ L:
break L
}
- addHistory(str[:len(str)-1]) //allow user to recall this line
+ hist := str[:len(str)-1]
+ addHistory(hist) //allow user to recall this line
+ self.history.WriteString(str)
self.parseInput(str)