Merge branch 'master' of github.com:chzyer/readline

This commit is contained in:
Cheney 2015-10-08 17:54:19 +08:00
commit d0699b888b
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ func (c *Config) Init() error {
if c.Stderr == nil { if c.Stderr == nil {
c.Stderr = Stderr c.Stderr = Stderr
} }
if c.HistoryLimit < 0 { if c.HistoryLimit <= 0 {
c.HistoryLimit = 500 c.HistoryLimit = 500
} }
return nil return nil