Fix code-folding at EOL when cursor isn't at EOL

This commit is contained in:
Henrik Lissner 2020-02-06 14:14:36 -05:00
parent 3ab70d78eb
commit 7eafc54347
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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)