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

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

[nongnu] elpa/treesit-fold 0bae1476a4 242/417: chore: Changelog and styl


From: ELPA Syncer
Subject: [nongnu] elpa/treesit-fold 0bae1476a4 242/417: chore: Changelog and styles (#38)
Date: Mon, 1 Jul 2024 10:02:30 -0400 (EDT)

branch: elpa/treesit-fold
commit 0bae1476a47b707c6003becd87f4c0bf6cf509ba
Author: Jen-Chieh Shen <jcs090218@gmail.com>
Commit: GitHub <noreply@github.com>

    chore: Changelog and styles (#38)
    
    * docs: Changelog
    
    * style(ts-fold.el): Fix indentation
---
 CHANGELOG.md | 1 +
 ts-fold.el   | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index bde8a82b68..9c1aeeee59 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for 
recommendations on how
 * OCaml parser and first functions added (#21)
 * Enhance Ruby parser (#26)
 * Julia language support (#33)
+* Remove redundant fold node alist (#36)
 
 ## 0.1.0
 > Released Oct 18, 2021
diff --git a/ts-fold.el b/ts-fold.el
index fc197a337c..df2a120d4c 100644
--- a/ts-fold.el
+++ b/ts-fold.el
@@ -182,7 +182,7 @@ This function is borrowed from `tree-sitter-node-at-point'."
          ;; Used for looping
          (current node))
     (while (and current (not (alist-get (tsc-node-type current) mode-ranges)))
-        (setq current (tsc-get-parent current)))
+      (setq current (tsc-get-parent current)))
     current))
 
 (defun ts-fold--get-fold-range (node)



reply via email to

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