Skip to content

Commit 62c1c66

Browse files
committed
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.
1 parent c67a30e commit 62c1c66

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

internal/buffer/settings.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,6 @@ func (b *Buffer) SetOptionNative(option string, nativeValue interface{}) error {
2626
} else if option == "statusline" {
2727
screen.Redraw()
2828
} else if option == "filetype" {
29-
config.InitRuntimeFiles(true)
30-
err := config.ReadSettings()
31-
if err != nil {
32-
screen.TermMessage(err)
33-
}
34-
err = config.InitGlobalSettings()
35-
if err != nil {
36-
screen.TermMessage(err)
37-
}
3829
config.InitLocalSettings(b.Settings, b.Path)
3930
b.UpdateRules()
4031
} else if option == "fileformat" {

0 commit comments

Comments
 (0)