Make calcHash() a method of SharedBuffer

This will make it easier to use calcHash() in other SharedBuffer
methods.
This commit is contained in:
Dmytro Maluka
2025-07-26 22:38:13 +02:00
parent c9f84cd2b7
commit 4ade5cdf24
3 changed files with 25 additions and 25 deletions

View File

@@ -318,7 +318,7 @@ func (b *Buffer) saveToFile(filename string, withSudo bool, autoSave bool) error
// For large files 'fastdirty' needs to be on
b.Settings["fastdirty"] = true
} else {
calcHash(b, &b.origHash)
b.calcHash(&b.origHash)
}
}