Histoty File not Exist
halalala222 opened this issue · 0 comments
halalala222 commented
Latest Version v1.1.3
// Create the readline instance.
a.rl, err = readline.NewEx(&readline.Config{
Prompt: a.currentPrompt,
HistorySearchFold: true, // enable case-insensitive history searching
DisableAutoSaveHistory: true,
HistoryFile: a.config.HistoryFile,
HistoryLimit: a.config.HistoryLimit,
AutoComplete: newCompleter(&a.commands),
})
DisableAutoSaveHistory default is always true.
But in master branch
func (a *App) RunWithReadline(rl *readline.Instance) (err error) {
defer a.Close()
a.setReadlineDefaults(rl.Config)
}
a.setReadlineDefaults(rl.Config)
aways set DisableAutoSaveHistory default true.