aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2023-12-23 06:30:40 -0500
committerEli Zaretskii2023-12-23 06:30:40 -0500
commit1be62044732df0c4f1be9679a4ada09850a9e2ab (patch)
tree21e801fc520832d37dfcf744c174d55cf2a63d18 /src
parentb09765a7114a92fbb71dad50a44a66938723624d (diff)
parenta4751657389cf47c18416fa5d148ad2a67e14565 (diff)
downloademacs-1be62044732df0c4f1be9679a4ada09850a9e2ab.tar.gz
emacs-1be62044732df0c4f1be9679a4ada09850a9e2ab.zip
Merge from origin/emacs-29
a4751657389 * doc/man/emacsclient.1: Fix --tramp option. 1e5357d3d1f * doc/man/emacsclient.1: Add missing sections (bug#66598) fba7b9db397 Add explanation for extra parentheses in ELisp Introduction 77232826821 Add sample code to the "let*" section in "forward-paragraph" 7a00ca92c19 Fix treesit test (bug#67117) d220893216c Fix c++-ts-mode indentation (bug#67975) d386a8aa43f Recommend customizing eglot for python-base-mode bd0c7589715 Improve documentation of new native-compilation commands 1ad126c0f28 ; Fix typo 77678244b83 doc/lispintro: Don't mention `set` (bug#67734) cb3684e9dfa Fix script for some characters 2922d683b78 ; * src/treesit.c (treesit_traverse_child_helper): Fix co... 7b315e8a5c9 Fix an issue when searching subtree backward (bug#67117) 03625c2fefa Fix passive mode for tnftp client in ange-ftp.el. b6429b1c1c7 ; Improve documentation of ispell.el's dictionary database 75cc1593412 ; * etc/PROBLEMS: Update the "GnuPG hangs" entry. 67d9af1c074 Fix using disabled command without a docstring f68f3500236 Improve documentation of text properties handling when ya... 06c399914fa Eglot: Add Uiua language server
Diffstat (limited to 'src')
-rw-r--r--src/treesit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/treesit.c b/src/treesit.c
index bbd0a405c29..3f4337ba97e 100644
--- a/src/treesit.c
+++ b/src/treesit.c
@@ -3246,9 +3246,9 @@ treesit_traverse_child_helper (TSTreeCursor *cursor,
3246 /* First go to the last child. */ 3246 /* First go to the last child. */
3247 while (ts_tree_cursor_goto_next_sibling (cursor)); 3247 while (ts_tree_cursor_goto_next_sibling (cursor));
3248 3248
3249 if (!named) 3249 if (!named || (named && ts_node_is_named (ts_tree_cursor_current_node(cursor))))
3250 return true; 3250 return true;
3251 /* Else named... */ 3251 /* Else named is required and last child is not named node. */
3252 if (treesit_traverse_sibling_helper(cursor, false, true)) 3252 if (treesit_traverse_sibling_helper(cursor, false, true))
3253 return true; 3253 return true;
3254 else 3254 else