]> git.eshelyaron.com Git - emacs.git/commitdiff
(ruby-ts--align-chain): Use 'equal' to check for an exact match
authorDmitry Gutov <dgutov@yandex.ru>
Sun, 26 Mar 2023 23:11:16 +0000 (02:11 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 26 Mar 2023 23:11:16 +0000 (02:11 +0300)
* 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

index cefd76feeec5e98e8602057a86c1cb22de3e531d..0915c29881d099de09c24625b539413c49b74178 100644 (file)
@@ -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))))