Skip to content

Commit f3f3921

Browse files
Merge branch 'FixNewBufferSettings' into dev
2 parents 88427b9 + 6775b45 commit f3f3921

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
> - [Fixing comment plugin not using user settings when overriding default setting #3424](https://github.com/zyedidia/micro/pull/3424)
1717
> - [Add the ability lock settings.json and bindings.json for plugins #3618](https://github.com/zyedidia/micro/pull/3618)
1818
> - [Add missing resize in TabMove #3619](https://github.com/zyedidia/micro/pull/3619)
19-
> - [Fixing settings not being applied when saving as a new file #3625](https://github.com/zyedidia/micro/pull/3625)
2019
>
2120
> To see the diff between this and upstream master, click [here](https://github.com/zyedidia/micro/compare/master...Neko-Box-Coder:micro-dev:dev)
2221

internal/buffer/save.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,6 @@ func (b *Buffer) saveToFile(filename string, withSudo bool, autoSave bool) error
232232
absPath, _ := filepath.Abs(filename)
233233
b.AbsPath = absPath
234234
b.isModified = false
235-
ft := b.FileType()
236-
b.UpdateRules()
237-
if b.FileType() != ft {
238-
b.ReloadSettings(true)
239-
}
235+
b.ReloadSettings(true)
240236
return err
241237
}

0 commit comments

Comments
 (0)