[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/tree-sitter e333f040e9: ; * lisp/treesit.el (treesit--indent-1):
From: |
Yuan Fu |
Subject: |
feature/tree-sitter e333f040e9: ; * lisp/treesit.el (treesit--indent-1): Fix treesit-node-at usage. |
Date: |
Sat, 12 Nov 2022 00:38:03 -0500 (EST) |
branch: feature/tree-sitter
commit e333f040e9f68bdce2b5735b4b9dd68944199056
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>
; * lisp/treesit.el (treesit--indent-1): Fix treesit-node-at usage.
---
lisp/treesit.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/treesit.el b/lisp/treesit.el
index 796b85ef74..4d1a6bdf82 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -1178,7 +1178,7 @@ Return (ANCHOR . OFFSET). This function is used by
(smallest-node
(cond ((null (treesit-parser-list)) nil)
((eq 1 (length (treesit-parser-list)))
- (treesit-node-at bol nil nil t))
+ (treesit-node-at bol))
((treesit-language-at (point))
(treesit-node-at bol (treesit-language-at (point))))
(t (treesit-node-at bol))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- feature/tree-sitter e333f040e9: ; * lisp/treesit.el (treesit--indent-1): Fix treesit-node-at usage.,
Yuan Fu <=