Fixing settings not being applied when saving as a new file (#3625)
Some checks are pending
Build and Test / test (1.19.x, macos-latest) (push) Waiting to run
Build and Test / test (1.19.x, ubuntu-latest) (push) Waiting to run
Build and Test / test (1.19.x, windows-latest) (push) Waiting to run
Build and Test / test (1.23.x, macos-latest) (push) Waiting to run
Build and Test / test (1.23.x, ubuntu-latest) (push) Waiting to run
Build and Test / test (1.23.x, windows-latest) (push) Waiting to run

This commit is contained in:
Neko Box Coder 2025-01-24 17:44:27 +00:00 committed by GitHub
parent f5debdf8fe
commit 698511c5b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -232,6 +232,6 @@ func (b *Buffer) saveToFile(filename string, withSudo bool, autoSave bool) error
absPath, _ := filepath.Abs(filename)
b.AbsPath = absPath
b.isModified = false
b.UpdateRules()
b.ReloadSettings(true)
return err
}