Use character position for ranges in treesit_sync_visible_region
authorYuan Fu <casouri@gmail.com>
Sun, 23 Feb 2025 07:24:38 +0000 (23:24 -0800)
committerYuan Fu <casouri@gmail.com>
Sun, 23 Feb 2025 08:08:56 +0000 (00:08 -0800)
commit2dbf7d0b1b26a9676fbdb56a5955f3f24f521cc4
tree8b2c5115090ff041f8b12be01592c2489d33fbe3
parent9c1d13c89a94685c0d1120d15e28bfb24e9644c3
Use character position for ranges in treesit_sync_visible_region

* src/treesit.c (treesit_sync_visible_region): Use character position
instead of byte position when comparing to ranges, because the
ranges are in character position.
src/treesit.c