]> git.eshelyaron.com Git - emacs.git/commitdiff
; Another attempt at fixing c-ts-common--prev-standalone-sibling
authorYuan Fu <casouri@gmail.com>
Sat, 15 Feb 2025 01:44:02 +0000 (17:44 -0800)
committerEshel Yaron <me@eshelyaron.com>
Sat, 15 Feb 2025 19:31:15 +0000 (20:31 +0100)
* lisp/progmodes/c-ts-common.el:
(c-ts-common--prev-standalone-sibling): Fix.

(cherry picked from commit b58552ca983ad37e51fb375bd45bd12a2beda3b2)

lisp/progmodes/c-ts-common.el

index 79f5877ff16f87b65d03858797ba1330521bebf6..df29af948cc8a3bfdff453249b3405ad620515dd 100644 (file)
@@ -632,7 +632,7 @@ for determining standlone line."
                                  (funcall
                                   treesit-simple-indent-standalone-predicate
                                   node)
-                               (c-ts-common--standalone-predicate parent)))))
+                               (c-ts-common--standalone-predicate node)))))
         (setq node (treesit-node-prev-sibling node 'named)))
       (if (numberp anchor) anchor (treesit-node-start node)))))