Sfoglia il codice sorgente

fix console history, lines with leadning whitespace NOT included

zelig 10 anni fa
parent
commit
6b5d077c09
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      cmd/geth/js.go

+ 1 - 1
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)) {