emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/treesit-fold fe3e7610b1 403/417: fix: `treesit-fold-close-


From: ELPA Syncer
Subject: [nongnu] elpa/treesit-fold fe3e7610b1 403/417: fix: `treesit-fold-close-all` raises an wrong type error (#5)
Date: Mon, 1 Jul 2024 10:03:10 -0400 (EDT)

branch: elpa/treesit-fold
commit fe3e7610b1a8c8066db0142fe1044de2a9b79337
Author: Abdelhak Bougouffa <abougouffa@cryptolab.net>
Commit: GitHub <noreply@github.com>

    fix: `treesit-fold-close-all` raises an wrong type error (#5)
---
 treesit-fold.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/treesit-fold.el b/treesit-fold.el
index 43899e1114..3f69c39abd 100644
--- a/treesit-fold.el
+++ b/treesit-fold.el
@@ -510,10 +510,9 @@ If the current node is not folded or not foldable, do 
nothing."
              (treesit-fold-on-fold-hook)
              (node (treesit-buffer-root-node))
              (patterns (seq-mapcat (lambda (fold-range) `((,(car fold-range)) 
@name))
-                                   (alist-get major-mode 
treesit-fold-range-alist)
-                                   ))
+                                   (alist-get major-mode 
treesit-fold-range-alist)))
              (query (treesit-query-compile (treesit-node-language node) 
patterns)))
-        (setq nodes (treesit-query-capture node query nil nil t)
+        (setq nodes (treesit-query-capture node query)
               nodes (cl-remove-if (lambda (node)
                                     ;; Removed if on same line
                                     (treesit-fold--node-range-on-same-line 
(cdr node)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]