mirror of
https://github.com/zyedidia/micro
synced 2024-11-05 17:41:24 +00:00
Don't set fastdirty base if modified
This commit is contained in:
parent
aeb5563df0
commit
cf86f6848f
1 changed files with 5 additions and 3 deletions
|
@ -10,9 +10,11 @@ func (b *Buffer) SetOptionNative(option string, nativeValue interface{}) error {
|
|||
|
||||
if option == "fastdirty" {
|
||||
if !nativeValue.(bool) {
|
||||
e := calcHash(b, &b.origHash)
|
||||
if e == ErrFileTooLarge {
|
||||
b.Settings["fastdirty"] = false
|
||||
if !b.Modified() {
|
||||
e := calcHash(b, &b.origHash)
|
||||
if e == ErrFileTooLarge {
|
||||
b.Settings["fastdirty"] = false
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if option == "statusline" {
|
||||
|
|
Loading…
Reference in a new issue