Skip to content

Commit

Permalink
fix console history, lines with leadning whitespace NOT included
Browse files Browse the repository at this point in the history
  • Loading branch information
zelig committed Oct 23, 2015
1 parent 77878f7 commit 6b5d077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/geth/js.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 6b5d077

Please sign in to comment.