diff options
-rw-r--r-- | lisp/progmodes/c-ts-common.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/progmodes/c-ts-common.el b/lisp/progmodes/c-ts-common.el index c3a965b8e94..33365a3921b 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." |