diff options
author | Yuan Fu <casouri@gmail.com> | 2024-09-15 00:24:03 -0700 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2024-09-15 00:31:40 -0700 |
commit | 460b9d705ab482003fabe75b0fd1df223abe467c (patch) | |
tree | fa25d65ea42a6e5f48f7a5a32d5b95fb6e265fae /lisp/emacs-lisp/timer.el | |
parent | 81347c1aaf25b27e78e8beee4bc818ad2c4e1b71 (diff) | |
download | emacs-460b9d705ab482003fabe75b0fd1df223abe467c.tar.gz emacs-460b9d705ab482003fabe75b0fd1df223abe467c.tar.bz2 emacs-460b9d705ab482003fabe75b0fd1df223abe467c.zip |
Fix treesit_sync_visible_region's range fixup code (bug#73264)
new_ranges_head
|
v
( )->( )->( )->( )->( )
^ ^
| |
| lisp_ranges (loop head)
|
prev_cons -> set cdr to nil to cut of the rest
result:
( )->( )
* src/treesit.c (treesit_sync_visible_region): Cut off this cons and the
rest, not set the current range's end to nil.
* test/src/treesit-tests.el:
(treesit-range-fixup-after-edit): Add tests for all cases.
Diffstat (limited to 'lisp/emacs-lisp/timer.el')
0 files changed, 0 insertions, 0 deletions