Fix the call to treesit-thing-defined-p
* lisp/treesit.el (treesit-defun-at-point): Add the necessary 2nd argument.
This commit is contained in:
parent
7a3c10dcb5
commit
df5ac0daf0
1 changed files with 3 additions and 1 deletions
|
@ -2823,7 +2823,9 @@ is `nested'.
|
|||
|
||||
Return nil if `treesit-defun-type-regexp' isn't set and `defun'
|
||||
isn't defined in `treesit-thing-settings'."
|
||||
(when (or treesit-defun-type-regexp (treesit-thing-defined-p 'defun))
|
||||
(when (or treesit-defun-type-regexp
|
||||
(treesit-thing-defined-p
|
||||
'defun (treesit-language-at (point))))
|
||||
(treesit-thing-at-point
|
||||
(or treesit-defun-type-regexp 'defun) treesit-defun-tactic)))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue