Don't set fastdirty base if modified
@@ -10,11 +10,13 @@ func (b *Buffer) SetOptionNative(option string, nativeValue interface{}) error {
if option == "fastdirty" {
if !nativeValue.(bool) {
+ if !b.Modified() {
e := calcHash(b, &b.origHash)
if e == ErrFileTooLarge {
b.Settings["fastdirty"] = false
}
}
+ }
} else if option == "statusline" {
screen.Redraw()
} else if option == "filetype" {
