mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 14:47:16 +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)
|
ft := b.Settings["filetype"].(string)
|
||||||
if ft == "off" {
|
if ft == "off" {
|
||||||
|
b.ClearMatches()
|
||||||
|
b.SyntaxDef = nil
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user