branch: elpa/treesit-fold
commit 49aff5368073f6a08f0cac7d2dca8ea8c8a57144
Author: Jen-Chieh <[email protected]>
Commit: Jen-Chieh <[email protected]>
Add comment
---
tree-sitter-fold-indicators.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tree-sitter-fold-indicators.el b/tree-sitter-fold-indicators.el
index 8f8c177b7c..1d55dcfade 100644
--- a/tree-sitter-fold-indicators.el
+++ b/tree-sitter-fold-indicators.el
@@ -234,11 +234,14 @@ head (first line) of the region."
(first-ov (nth 0 ov-lst))
(last-ov (nth len-1 ov-lst))
(index 1))
+ ;; Head
(tree-sitter-fold-indicators--active-ov
folded first-ov
(if folded 'tree-sitter-fold-indicators-fr-plus
'tree-sitter-fold-indicators-fr-minus-tail))
+ ;; Last
(tree-sitter-fold-indicators--active-ov folded last-ov
(tree-sitter-fold-indicators--get-end-fringe))
+ ;; In between `head' and `last'
(while (< index len-1)
(tree-sitter-fold-indicators--active-ov folded (nth index ov-lst)
'tree-sitter-fold-indicators-fr-center)
(cl-incf index)))