diff --git a/internal/buffer/settings.go b/internal/buffer/settings.go index 0af90ff8..e934da2f 100644 --- a/internal/buffer/settings.go +++ b/internal/buffer/settings.go @@ -12,7 +12,7 @@ func (b *Buffer) SetOptionNative(option string, nativeValue interface{}) error { if option == "fastdirty" { if !nativeValue.(bool) { - if !b.Modified() { + if !b.isModified { e := calcHash(b, &b.origHash) if e == ErrFileTooLarge { b.Settings["fastdirty"] = true