diff options
| author | Dmitry Gutov | 2023-03-27 02:11:16 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2023-03-27 02:11:16 +0300 |
| commit | a0d5fba74a638aa320aefa0a6583d233bbcee99f (patch) | |
| tree | 51eea3ba6a267dd4c52810faf545bf569d09f012 | |
| parent | f631c90e791ef94b27c5ea4c9c1d865a498ad476 (diff) | |
| download | emacs-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.el | 2 |
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 | ||