mirror of
https://github.com/zyedidia/micro.git
synced 2025-06-18 14:55:38 -04:00
buffer/settings: Add comment why do we need to zero origHash
This commit is contained in:
parent
7fe98ccfee
commit
d31095fe8f
@ -18,6 +18,7 @@ func (b *Buffer) SetOptionNative(option string, nativeValue interface{}) error {
|
||||
if !b.isModified {
|
||||
calcHash(b, &b.origHash)
|
||||
} else {
|
||||
// prevent using an old stale origHash value
|
||||
b.origHash = [md5.Size]byte{}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user