mirror of
https://github.com/zyedidia/micro
synced 2024-11-05 17:41:24 +00:00
Share hash across equivalent buffers for fastdirty=off
This commit is contained in:
parent
12c286f9b1
commit
e7ef81ed97
1 changed files with 3 additions and 3 deletions
|
@ -82,6 +82,9 @@ type SharedBuffer struct {
|
|||
|
||||
// Modifications is the list of modified regions for syntax highlighting
|
||||
Modifications []Loc
|
||||
|
||||
// Hash of the original buffer -- empty if fastdirty is on
|
||||
origHash [md5.Size]byte
|
||||
}
|
||||
|
||||
func (b *SharedBuffer) insert(pos Loc, value []byte) {
|
||||
|
@ -138,9 +141,6 @@ type Buffer struct {
|
|||
Highlighter *highlight.Highlighter
|
||||
HighlightLock sync.Mutex
|
||||
|
||||
// Hash of the original buffer -- empty if fastdirty is on
|
||||
origHash [md5.Size]byte
|
||||
|
||||
// Settings customized by the user
|
||||
Settings map[string]interface{}
|
||||
|
||||
|
|
Loading…
Reference in a new issue