Skip to content

Commit 5a94124

Browse files
authored
fix(indicators): Render indicators once it's mode is enabled (#19)
* fix(indicators): Render indicators once it's mode is enabled * prevent error try refresh
1 parent ea554f1 commit 5a94124

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ts-fold-indicators.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@
109109
(if (ts-fold-mode 1) ; Enable `ts-fold-mode' automatically
110110
(progn
111111
(add-hook 'tree-sitter-after-change-functions #'ts-fold-indicators-refresh nil t)
112-
(add-hook 'after-save-hook #'ts-fold-indicators-refresh nil t))
112+
(add-hook 'after-save-hook #'ts-fold-indicators-refresh nil t)
113+
(ignore-errors (ts-fold-indicators-refresh)))
113114
(ts-fold-indicators-mode -1)))
114115

115116
(defun ts-fold-indicators--disable ()

0 commit comments

Comments
 (0)