mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-17 06:20:28 +00:00
buffer/settings: On filetype change remove the following steps
- reload runtime files - reset globals - parse the settings again since this isn't the task of a filetype change.
This commit is contained in:
parent
c67a30e611
commit
62c1c667b8
1 changed files with 0 additions and 9 deletions
|
|
@ -26,15 +26,6 @@ func (b *Buffer) SetOptionNative(option string, nativeValue interface{}) error {
|
|||
} else if option == "statusline" {
|
||||
screen.Redraw()
|
||||
} else if option == "filetype" {
|
||||
config.InitRuntimeFiles(true)
|
||||
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()
|
||||
} else if option == "fileformat" {
|
||||
|
|
|
|||
Loading…
Reference in a new issue