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

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

[nongnu] elpa/treesit-fold c14893d4ff 343/417: perf: Use built-in functi


From: ELPA Syncer
Subject: [nongnu] elpa/treesit-fold c14893d4ff 343/417: perf: Use built-in function for indentation
Date: Mon, 1 Jul 2024 10:03:02 -0400 (EDT)

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

    perf: Use built-in function for indentation
---
 ts-fold-util.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ts-fold-util.el b/ts-fold-util.el
index 36799dc205..0f8cd4aed8 100644
--- a/ts-fold-util.el
+++ b/ts-fold-util.el
@@ -136,8 +136,7 @@ Optional argument TRIM, see function `ts-fold--get-face'."
 (defun ts-fold--indentation (pos)
   "Return current indentation by POS."
   (goto-char pos)
-  (beginning-of-visual-line)
-  (back-to-indentation) (current-column))
+  (current-indentation))
 
 ;;
 ;; (@* "Math" )



reply via email to

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