]> git.eshelyaron.com Git - emacs.git/commit
Reparse tree-sitter tree when buffer restriction changes
authorYuan Fu <casouri@gmail.com>
Mon, 28 Nov 2022 22:21:39 +0000 (14:21 -0800)
committerYuan Fu <casouri@gmail.com>
Mon, 28 Nov 2022 22:34:12 +0000 (14:34 -0800)
commitf794263da20b813623eab88df9233d774216276e
tree765e18b44ccbdd9840ca50eecc20d3956079ff24
parenta7b0b20c1bc758fa99fda96d06a266868aec3eea
Reparse tree-sitter tree when buffer restriction changes

* src/treesit.c (treesit_sync_visible_region): Set nee_reparse flag to
true if buffer range changes.  Add some assertion.

* src/treesit.c (treesit_ensure_parsed): Move
treesit_sync_visible_region in front of the check for need_reparse.
src/treesit.c