mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-03 14:40:37 +00:00
Fix `set filetype unknown` not working as expected in the following scenario: 1. open foo.txt (no filetype detected) -> ft is `unknown`, highlighted with default.yaml, as expected 2. `set filetype go` -> ft is `go`, highlighted with go.yaml as expected 3. `set filetype unknown` -> ft is still `go`, still highlighted with go.yaml (whereas expected behavior is: ft is `unknown`, highlighted with default.yaml) Fix that by always updating b.SyntaxDef value, not reusing the old one. This also makes the code simpler and easier to understand. |
||
|---|---|---|
| .. | ||
| action | ||
| buffer | ||
| clipboard | ||
| config | ||
| display | ||
| info | ||
| lua | ||
| screen | ||
| shell | ||
| util | ||
| views | ||