mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 14:22:42 +09:00
Merge
This commit is contained in:
@@ -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 {
|
} else {
|
||||||
m.history = make(map[string][]string)
|
m.history = make(map[string][]string)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -326,10 +326,12 @@ func SetOption(option, value string) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, ok := CurView().Buf.Settings[option]; ok {
|
if len(tabs) != 0 {
|
||||||
for _, tab := range tabs {
|
if _, ok := CurView().Buf.Settings[option]; ok {
|
||||||
for _, view := range tab.views {
|
for _, tab := range tabs {
|
||||||
SetLocalOption(option, value, view)
|
for _, view := range tab.views {
|
||||||
|
SetLocalOption(option, value, view)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user