mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-12 10:00:35 +09:00
Make set filetype off work as expected (#3216)
Disable syntax highlighting after setting filetype to `off`.
This commit is contained in:
@@ -690,6 +690,8 @@ func (b *Buffer) UpdateRules() {
|
||||
}
|
||||
ft := b.Settings["filetype"].(string)
|
||||
if ft == "off" {
|
||||
b.ClearMatches()
|
||||
b.SyntaxDef = nil
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user