mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-20 16:00:29 +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. |
||
|---|---|---|
| .. | ||
| autocomplete.go | ||
| backup.go | ||
| buffer.go | ||
| buffer_generated_test.go | ||
| buffer_test.go | ||
| cursor.go | ||
| eventhandler.go | ||
| line_array.go | ||
| line_array_test.go | ||
| loc.go | ||
| message.go | ||
| save.go | ||
| search.go | ||
| serialize.go | ||
| settings.go | ||
| stack.go | ||
| stack_test.go | ||