Milad Rashidikhah
20ff82d9fc
fix(treesitter): clamp unbounded fold ranges
...
Problem:
Tree-sitter uses UINT32_MAX for full-document ranges, which becomes -1 on 32-bit platforms and reaches _foldupdate as an invalid end row.
Solution:
Treat negative changed-range end rows as unbounded and clamp them to the buffer line count. Add a regression test that simulates the 32-bit sentinel.
AI-assisted: Codex
2026-07-28 11:00:30 +02:00
..
2026-07-27 06:31:40 +08:00
2026-02-01 08:22:07 +08:00
2026-07-25 06:26:55 +08:00
2026-07-27 18:30:54 -04:00
2026-07-26 12:27:30 -04:00
2026-07-27 06:31:33 +08:00
2026-01-26 06:53:53 +08:00
2026-07-28 11:00:30 +02:00
2026-07-24 08:14:20 +08:00
2026-07-27 18:30:54 -04:00
2026-07-22 12:03:34 -04:00
2026-07-23 17:27:14 -04:00
2022-03-13 04:52:45 +00:00
2026-07-27 06:31:58 +08:00
2026-05-13 07:31:17 -04:00
2026-04-14 11:13:03 -05:00
2023-08-13 13:25:10 +01:00
2025-12-30 01:44:24 -05:00
2026-05-17 09:56:37 -04:00
2026-03-12 11:12:56 +01:00
2023-08-13 13:25:10 +01:00
2023-08-13 13:25:10 +01:00
2023-08-13 13:25:10 +01:00
2025-08-22 19:10:43 +02:00
2023-08-13 13:25:10 +01:00
2023-08-13 13:25:10 +01:00
2026-07-18 22:19:48 +08:00
2026-01-20 07:56:50 +08:00
2022-10-13 05:48:12 -07:00
2019-03-11 21:00:12 +01:00
2026-04-14 11:13:03 -05:00
2026-04-14 11:13:03 -05:00
2026-07-18 22:19:48 +08:00
2024-07-02 13:05:16 +02:00