mirror of
https://github.com/zyedidia/micro
synced 2024-10-01 21:54:27 +00:00
Make set filetype off
work as expected (#3216)
Disable syntax highlighting after setting filetype to `off`.
This commit is contained in:
parent
d96f060b4c
commit
20bf7096b8
|
@ -690,6 +690,8 @@ func (b *Buffer) UpdateRules() {
|
|||
}
|
||||
ft := b.Settings["filetype"].(string)
|
||||
if ft == "off" {
|
||||
b.ClearMatches()
|
||||
b.SyntaxDef = nil
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue