From: Yuan Fu Date: Fri, 14 Feb 2025 16:36:24 +0000 (-0800) Subject: ; Fix c-ts-common--prev-standalone-sibling X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=11f6a4094ec8a1c490175f0c441f97fae32d5d18;p=emacs.git ; Fix c-ts-common--prev-standalone-sibling * lisp/progmodes/c-ts-common.el: (c-ts-common--prev-standalone-sibling): Fix. (cherry picked from commit ac9cf20919c46169a2e3aaa2b75ccb37dd5b5ff1) --- diff --git a/lisp/progmodes/c-ts-common.el b/lisp/progmodes/c-ts-common.el index d81fcca622d..79f5877ff16 100644 --- a/lisp/progmodes/c-ts-common.el +++ b/lisp/progmodes/c-ts-common.el @@ -631,10 +631,10 @@ for determining standlone line." (if treesit-simple-indent-standalone-predicate (funcall treesit-simple-indent-standalone-predicate - parent) + node) (c-ts-common--standalone-predicate parent))))) - (setq node (treesit-node-prev-sibling node 'named)))) - (if (numberp anchor) anchor (treesit-node-start node)))) + (setq node (treesit-node-prev-sibling node 'named))) + (if (numberp anchor) anchor (treesit-node-start node))))) (defun c-ts-common-parent-ignore-preproc (node) "Return the parent of NODE, skipping preproc nodes."