forked from mirror/readline
Merge pull request #10 from buaazp/fix-history-limit
fixed default history limit count error
This commit is contained in:
commit
3647bb9124
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue