Fix fileformat

This commit is contained in:
Zachary Yedidia
2019-01-14 23:24:49 -05:00
parent 3380170af8
commit 4a5b759f16
4 changed files with 19 additions and 5 deletions

View File

@@ -30,6 +30,12 @@ func (b *Buffer) SetOption(option, value string) error {
} else if option == "filetype" {
b.UpdateRules()
} else if option == "fileformat" {
switch b.Settings["fileformat"].(string) {
case "unix":
b.Endings = FFUnix
case "dos":
b.Endings = FFDos
}
b.isModified = true
} else if option == "syntax" {
if !nativeValue.(bool) {