Fix code-folding at EOL when cursor isn't at EOL
This commit is contained in:
parent
3ab70d78eb
commit
7eafc54347
1 changed files with 4 additions and 1 deletions
|
@ -27,7 +27,10 @@
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(ignore-errors
|
(ignore-errors
|
||||||
(or (hs-looking-at-block-start-p)
|
(or (hs-looking-at-block-start-p)
|
||||||
(hs-find-block-beginning)))))
|
(hs-find-block-beginning)
|
||||||
|
(unless (eolp)
|
||||||
|
(end-of-line)
|
||||||
|
(+fold--hideshow-fold-p))))))
|
||||||
|
|
||||||
(defun +fold--invisible-points (count)
|
(defun +fold--invisible-points (count)
|
||||||
(let (points)
|
(let (points)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue