Skip to content

Commit 0aeab5f

Browse files
committed
Merge pull request ethereum#1929 from ethersphere/develop
fix console history, lines with leadning whitespace NOT included
2 parents 77878f7 + 6b5d077 commit 0aeab5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/geth/js.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ func (self *jsre) interactive() {
439439
func mustLogInHistory(input string) bool {
440440
return len(input) == 0 ||
441441
passwordRegexp.MatchString(input) ||
442-
leadingSpace.MatchString(input)
442+
!leadingSpace.MatchString(input)
443443
}
444444

445445
func (self *jsre) withHistory(datadir string, op func(*os.File)) {

0 commit comments

Comments
 (0)