Merge pull request #10 from buaazp/fix-history-limit

fixed default history limit count error
This commit is contained in:
Chzyer 2015-10-08 17:48:19 +08:00
commit 3647bb9124
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