summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuan Fu <casouri@gmail.com>2025-02-14 17:44:02 -0800
committerYuan Fu <casouri@gmail.com>2025-02-14 17:44:40 -0800
commitb58552ca983ad37e51fb375bd45bd12a2beda3b2 (patch)
tree54ce85fc86e64b2a051d8fd98f1643dd3cec5cd7
parentdc86f59e926f618d4e3568a332b42ea0647a08ba (diff)
downloademacs-b58552ca983ad37e51fb375bd45bd12a2beda3b2.tar.gz
emacs-b58552ca983ad37e51fb375bd45bd12a2beda3b2.tar.bz2
emacs-b58552ca983ad37e51fb375bd45bd12a2beda3b2.zip
; Another attempt at fixing c-ts-common--prev-standalone-sibling
* lisp/progmodes/c-ts-common.el: (c-ts-common--prev-standalone-sibling): Fix.
-rw-r--r--lisp/progmodes/c-ts-common.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/c-ts-common.el b/lisp/progmodes/c-ts-common.el
index 33365a3921b..7ebd0770a5d 100644
--- a/lisp/progmodes/c-ts-common.el
+++ b/lisp/progmodes/c-ts-common.el
@@ -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)))))