This commit is contained in:
Zachary Yedidia
2017-10-22 18:02:18 -04:00
2 changed files with 11 additions and 5 deletions

View File

@@ -504,7 +504,11 @@ func (m *Messenger) LoadHistory() {
}
}
m.history = decodedMap
if decodedMap != nil {
m.history = decodedMap
} else {
m.history = make(map[string][]string)
}
} else {
m.history = make(map[string][]string)
}

View File

@@ -326,10 +326,12 @@ func SetOption(option, value string) error {
}
}
if _, ok := CurView().Buf.Settings[option]; ok {
for _, tab := range tabs {
for _, view := range tab.views {
SetLocalOption(option, value, view)
if len(tabs) != 0 {
if _, ok := CurView().Buf.Settings[option]; ok {
for _, tab := range tabs {
for _, view := range tab.views {
SetLocalOption(option, value, view)
}
}
}
}