mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 22:27:13 +09:00
Merge
This commit is contained in:
@@ -504,10 +504,14 @@ func (m *Messenger) LoadHistory() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if decodedMap != nil {
|
||||||
m.history = decodedMap
|
m.history = decodedMap
|
||||||
} else {
|
} else {
|
||||||
m.history = make(map[string][]string)
|
m.history = make(map[string][]string)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
m.history = make(map[string][]string)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// SaveHistory saves the user's command history to configDir/buffers/history
|
// SaveHistory saves the user's command history to configDir/buffers/history
|
||||||
|
|||||||
@@ -326,6 +326,7 @@ func SetOption(option, value string) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(tabs) != 0 {
|
||||||
if _, ok := CurView().Buf.Settings[option]; ok {
|
if _, ok := CurView().Buf.Settings[option]; ok {
|
||||||
for _, tab := range tabs {
|
for _, tab := range tabs {
|
||||||
for _, view := range tab.views {
|
for _, view := range tab.views {
|
||||||
@@ -333,6 +334,7 @@ func SetOption(option, value string) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user