From 6b5d077c09e8ba8419dc2aef4320e01cdd8d9dd9 Mon Sep 17 00:00:00 2001 From: zelig Date: Fri, 23 Oct 2015 20:37:12 +0200 Subject: fix console history, lines with leadning whitespace NOT included --- cmd/geth/js.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/geth/js.go b/cmd/geth/js.go index 8ebb04bce..7f7f19d78 100644 --- a/cmd/geth/js.go +++ b/cmd/geth/js.go @@ -439,7 +439,7 @@ func (self *jsre) interactive() { func mustLogInHistory(input string) bool { return len(input) == 0 || passwordRegexp.MatchString(input) || - leadingSpace.MatchString(input) + !leadingSpace.MatchString(input) } func (self *jsre) withHistory(datadir string, op func(*os.File)) { -- cgit v1.2.3