Luuk van Baal
bc1018a8d3
fix(treesitter): avoid computing fold levels for empty buffer
...
Problem: Computing fold levels for an empty buffer (somehow) breaks the
parser state, resulting in a broken highlighter and foldexpr.
Cached foldexpr parser is invalid after filetype has changed.
Solution: Avoid computing fold levels for empty buffer.
Clear cached foldinfos upon `FileType`.
2025-02-19 19:11:55 +01:00
..
2024-11-14 12:40:57 +01:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-11-14 12:40:57 +01:00
2024-11-14 12:40:57 +01:00
2024-04-23 18:17:04 +02:00
2024-11-14 12:40:57 +01:00
2024-11-14 12:40:57 +01:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-07-14 06:12:42 +08:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-11-14 12:40:57 +01:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-11-14 12:40:57 +01:00
2024-04-23 18:17:04 +02:00
2024-11-14 12:40:57 +01:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-11-14 12:40:57 +01:00
2024-04-23 18:17:04 +02:00
2024-09-02 20:19:50 +02:00
2024-11-14 12:40:57 +01:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2025-02-19 19:11:55 +01:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2025-01-04 16:48:00 -08:00
2024-04-23 18:17:04 +02:00