Update Config init.

On branch master
 Your branch is up to date with 'origin/master'.

 Changes to be committed:
	modified:   readline.go
This commit is contained in:
luopengift 2018-10-21 00:56:12 +08:00
parent f2b6537408
commit dc43ea572e
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ func (c *Config) Init() error {
if c.inited {
return nil
}
c.Prompt = StaticPrompt("")
c.inited = true
if c.Stdin == nil {
c.Stdin = NewCancelableStdin(Stdin)