[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 a0d5fba74a6 2/2: (ruby-ts--align-chain): Use 'equal' to check f
From: |
Dmitry Gutov |
Subject: |
emacs-29 a0d5fba74a6 2/2: (ruby-ts--align-chain): Use 'equal' to check for an exact match |
Date: |
Sun, 26 Mar 2023 19:11:51 -0400 (EDT) |
branch: emacs-29
commit a0d5fba74a638aa320aefa0a6583d233bbcee99f
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
(ruby-ts--align-chain): Use 'equal' to check for an exact match
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--align-chain): Use
'equal' to check for an exact match rather than substring.
---
lisp/progmodes/ruby-ts-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/progmodes/ruby-ts-mode.el b/lisp/progmodes/ruby-ts-mode.el
index cefd76feeec..0915c29881d 100644
--- a/lisp/progmodes/ruby-ts-mode.el
+++ b/lisp/progmodes/ruby-ts-mode.el
@@ -469,7 +469,7 @@ non-nil."
(let* (first-call )
(while (and parent
(setq first-call (treesit-node-parent parent))
- (string-search "call" (treesit-node-type first-call)))
+ (equal "call" (treesit-node-type first-call)))
(setq parent first-call))
(treesit-node-start (treesit-search-subtree parent "\\." nil t))))