mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-11 01:51:00 +00:00
commit
afedad9977
2 changed files with 8 additions and 4 deletions
|
|
@ -501,6 +501,8 @@ func (m *Messenger) LoadHistory() {
|
|||
|
||||
if err != nil {
|
||||
m.Error("Error loading history:", err)
|
||||
SetOption("savehistory", "false")
|
||||
m.history = make(map[string][]string)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue