mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-22 16:57:12 +09:00
highlighter: Remove EmptyDef since it's superseeded by a nil check of SyntaxDef
This commit is contained in:
@@ -908,8 +908,6 @@ func (b *Buffer) UpdateRules() {
|
||||
if b.SyntaxDef != nil {
|
||||
b.Settings["filetype"] = b.SyntaxDef.FileType
|
||||
}
|
||||
} else {
|
||||
b.SyntaxDef = &highlight.EmptyDef
|
||||
}
|
||||
|
||||
if b.SyntaxDef != nil {
|
||||
|
||||
Reference in New Issue
Block a user