mirror of
https://github.com/zyedidia/micro
synced 2024-11-05 17:41:24 +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
1 changed files with 2 additions and 0 deletions
|
@ -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