projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f631c90
)
(ruby-ts--align-chain): Use 'equal' to check for an exact match
author
Dmitry Gutov
<dgutov@yandex.ru>
Sun, 26 Mar 2023 23:11:16 +0000
(
02:11
+0300)
committer
Dmitry 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
patch
|
blob
|
history
diff --git
a/lisp/progmodes/ruby-ts-mode.el
b/lisp/progmodes/ruby-ts-mode.el
index cefd76feeec5e98e8602057a86c1cb22de3e531d..0915c29881d099de09c24625b539413c49b74178 100644
(file)
--- 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))))