Handle same file open in multiple buffers

This commit is contained in:
Zachary Yedidia
2019-01-14 00:18:49 -05:00
parent 7a20c2db76
commit 23926af9f7
10 changed files with 114 additions and 95 deletions

View File

@@ -30,7 +30,7 @@ func (b *Buffer) SetOption(option, value string) error {
} else if option == "filetype" {
b.UpdateRules()
} else if option == "fileformat" {
b.isModified = true
*b.isModified = true
} else if option == "syntax" {
if !nativeValue.(bool) {
b.ClearMatches()