summaryrefslogtreecommitdiff
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorDenis Zubarev <dvzubarev@yandex.ru>2023-11-12 01:42:42 +0300
committerYuan Fu <casouri@gmail.com>2023-12-18 18:25:26 -0800
commit7b315e8a5c966f8d11a4f646db4e29b989b56ab1 (patch)
tree46c8b7361d03583a3865165dde5e03c55cc877e8 /lisp/textmodes
parent03625c2fefa682f74775abc1e223e17557d58bc7 (diff)
downloademacs-7b315e8a5c966f8d11a4f646db4e29b989b56ab1.tar.gz
emacs-7b315e8a5c966f8d11a4f646db4e29b989b56ab1.tar.bz2
emacs-7b315e8a5c966f8d11a4f646db4e29b989b56ab1.zip
Fix an issue when searching subtree backward (bug#67117)
* src/treesit.c (treesit_traverse_child_helper): Do not call treesit_traverse_sibling_helper when the named node is required and the last child is the named node. Otherwise treesit_traverse_sibling_helper will move cursor to the previous sibling and last node will be skipped. * test/src/treesit-tests.el (treesit-search-subtree-forward-1): (treesit-search-subtree-backward-1): Add tests.
Diffstat (limited to 'lisp/textmodes')
0 files changed, 0 insertions, 0 deletions