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

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

[nongnu] elpa/treesit-fold 49aff53680 136/417: Add comment


From: ELPA Syncer
Subject: [nongnu] elpa/treesit-fold 49aff53680 136/417: Add comment
Date: Mon, 1 Jul 2024 10:02:19 -0400 (EDT)

branch: elpa/treesit-fold
commit 49aff5368073f6a08f0cac7d2dca8ea8c8a57144
Author: Jen-Chieh <jcs090218@gmail.com>
Commit: Jen-Chieh <jcs090218@gmail.com>

    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)))



reply via email to

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