diff --git a/readline.go b/readline.go index cd075f4..dc49ff1 100644 --- a/readline.go +++ b/readline.go @@ -40,7 +40,7 @@ func (c *Config) Init() error { if c.Stderr == nil { c.Stderr = Stderr } - if c.HistoryLimit < 0 { + if c.HistoryLimit <= 0 { c.HistoryLimit = 500 } return nil