mirror of
https://github.com/Hopiu/micro.git
synced 2026-05-23 05:35:50 +00:00
parent
d5ff785559
commit
3ef0267f0a
1 changed files with 10 additions and 0 deletions
|
|
@ -20,6 +20,16 @@ func (b *Buffer) SetOptionNative(option string, nativeValue interface{}) error {
|
||||||
} else if option == "statusline" {
|
} else if option == "statusline" {
|
||||||
screen.Redraw()
|
screen.Redraw()
|
||||||
} else if option == "filetype" {
|
} else if option == "filetype" {
|
||||||
|
config.InitRuntimeFiles()
|
||||||
|
err := config.ReadSettings()
|
||||||
|
if err != nil {
|
||||||
|
screen.TermMessage(err)
|
||||||
|
}
|
||||||
|
err = config.InitGlobalSettings()
|
||||||
|
if err != nil {
|
||||||
|
screen.TermMessage(err)
|
||||||
|
}
|
||||||
|
config.InitLocalSettings(b.Settings, b.Path)
|
||||||
b.UpdateRules()
|
b.UpdateRules()
|
||||||
} else if option == "fileformat" {
|
} else if option == "fileformat" {
|
||||||
switch b.Settings["fileformat"].(string) {
|
switch b.Settings["fileformat"].(string) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue