aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-10-24 02:37:12 +0800
committerzelig <viktor.tron@gmail.com>2015-10-24 02:37:12 +0800
commit6b5d077c09e8ba8419dc2aef4320e01cdd8d9dd9 (patch)
treeab35590828665c2d05fa32093ea04455ac239cf0
parent77878f76a935061cee82ae9c2a1bc64b192b592b (diff)
downloaddexon-6b5d077c09e8ba8419dc2aef4320e01cdd8d9dd9.tar.gz
dexon-6b5d077c09e8ba8419dc2aef4320e01cdd8d9dd9.tar.zst
dexon-6b5d077c09e8ba8419dc2aef4320e01cdd8d9dd9.zip
fix console history, lines with leadning whitespace NOT included
-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 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)) {