From cc34936efba46568505d8801dc335f8cec8f731e Mon Sep 17 00:00:00 2001 From: Noah Peart Date: Tue, 15 Oct 2024 19:31:28 -0700 Subject: [PATCH] Fix misplaced paren in c-ts-mode--anchor-prev-sibling * lisp/progmodes/c-ts-mode.el (c-ts-mode--anchor-prev-sibling): Fix parentheses around condition. --- lisp/progmodes/c-ts-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index 3f6a7422aa0..0d7f95e9a6d 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -343,8 +343,8 @@ c-ts-mode--anchor-prev-sibling ;; and starting the items on the same line as {. (_ (goto-char (treesit-node-start prev-sibling)) (if (or (looking-back (rx bol (* whitespace)) - (line-beginning-position))) - (null (treesit-node-prev-sibling prev-sibling t)) + (line-beginning-position)) + (null (treesit-node-prev-sibling prev-sibling t))) (setq continue nil) (setq prev-sibling (treesit-node-prev-sibling prev-sibling))))))) -- 2.43.0