[fix] initialize statusline with default config - closes #86

This commit is contained in:
Adam Tauber 2017-03-07 00:54:42 +01:00
parent 68e9328590
commit 845626567d

View File

@ -1276,6 +1276,7 @@ func (a *App) LoadConfig(configPath string) error {
if _, err := os.Stat(configPath); os.IsNotExist(err) { if _, err := os.Stat(configPath); os.IsNotExist(err) {
a.config = &config.DefaultConfig a.config = &config.DefaultConfig
a.config.Keys = config.DefaultKeys a.config.Keys = config.DefaultKeys
a.statusLine, _ = NewStatusLine(a.config.General.StatusLine)
return nil return nil
} }