Skip to content

Commit b52db56

Browse files
committed
clean up
1 parent f61018e commit b52db56

File tree

2 files changed

+3
-23
lines changed

2 files changed

+3
-23
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
77
[![CI](https://github.com/emacs-vs/foldvis/actions/workflows/test.yml/badge.svg)](https://github.com/emacs-vs/foldvis/actions/workflows/test.yml)
88

9-
Supporting backends:
9+
A list of supported backends:
1010

11-
- [hideshow][]
11+
- [hideshow][] (WIP)
1212
- [origami.el][]
1313
- [ts-fold][] / [treesit-fold][]
1414

foldvis-hideshow.el

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -67,27 +67,7 @@
6767
"Refresh indicators for all folding range."
6868
(when hs-minor-mode
6969
(goto-char (point-min))
70-
(while (search-forward-regexp hs-block-start-regexp nil t)
71-
(when (if hideshowvis-ignore-same-line
72-
(let ((begin-line (save-excursion
73-
(goto-char (match-beginning 0))
74-
(line-number-at-pos (point)))))
75-
(save-excursion
76-
(goto-char (match-beginning 0))
77-
(ignore-errors
78-
(progn
79-
(funcall hs-forward-sexp-func 1)
80-
(> (line-number-at-pos (point)) begin-line)))))
81-
t)
82-
(let* ((ovl (make-overlay (match-beginning 0) (match-end 0))))
83-
(overlay-put ovl 'before-string
84-
(propertize
85-
"*hideshowvis*"
86-
'display
87-
(list 'left-fringe
88-
'hideshowvis-hideable-marker
89-
'hideshowvis-hidable-face)))
90-
(overlay-put ovl 'hideshowvis-hs t))))
70+
;; TODO: ..
9171
(run-hooks 'foldvis-refresh-hook)))
9272

9373
(provide 'foldvis-hideshow)

0 commit comments

Comments
 (0)