]> git.eshelyaron.com Git - emacs.git/commit
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)
committerEshel Yaron <me@eshelyaron.com>
Tue, 4 Mar 2025 15:29:50 +0000 (16:29 +0100)
commit0ee92e1fb0c517a80b1a5c8def61875b3e2078c6
treefcac792d2697cd13d82d8761e122c4e4040f5a0e
parent2e8377648931572543f535420b662d4e2f08c875
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.

(cherry picked from commit 2dbf7d0b1b26a9676fbdb56a5955f3f24f521cc4)
src/treesit.c