aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2023-03-27 02:11:16 +0300
committerDmitry Gutov2023-03-27 02:11:16 +0300
commita0d5fba74a638aa320aefa0a6583d233bbcee99f (patch)
tree51eea3ba6a267dd4c52810faf545bf569d09f012
parentf631c90e791ef94b27c5ea4c9c1d865a498ad476 (diff)
downloademacs-a0d5fba74a638aa320aefa0a6583d233bbcee99f.tar.gz
emacs-a0d5fba74a638aa320aefa0a6583d233bbcee99f.zip
(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.
-rw-r--r--lisp/progmodes/ruby-ts-mode.el2
1 files changed, 1 insertions, 1 deletions
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."
469 (let* (first-call ) 469 (let* (first-call )
470 (while (and parent 470 (while (and parent
471 (setq first-call (treesit-node-parent parent)) 471 (setq first-call (treesit-node-parent parent))
472 (string-search "call" (treesit-node-type first-call))) 472 (equal "call" (treesit-node-type first-call)))
473 (setq parent first-call)) 473 (setq parent first-call))
474 (treesit-node-start (treesit-search-subtree parent "\\." nil t)))) 474 (treesit-node-start (treesit-search-subtree parent "\\." nil t))))
475 475