diff options
| author | Milad Rashidikhah <mrashidikhah32@gmail.com> | 2026-07-28 08:25:32 +0000 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2026-07-28 11:00:30 +0200 |
| commit | 20ff82d9fcdeafe2cdf4824b8af1bdeeffb513b6 (patch) | |
| tree | ad54a3bdfbde30b19ba446bbbf33da0f00e6eae2 /runtime/plugin/python_setup.vim | |
| parent | 26357692c8089a2e4968cff716e412491382787a (diff) | |
| download | rneovim-20ff82d9fcdeafe2cdf4824b8af1bdeeffb513b6.tar.gz rneovim-20ff82d9fcdeafe2cdf4824b8af1bdeeffb513b6.tar.bz2 rneovim-20ff82d9fcdeafe2cdf4824b8af1bdeeffb513b6.zip | |
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
Diffstat (limited to 'runtime/plugin/python_setup.vim')
0 files changed, 0 insertions, 0 deletions