Fix mu4e-headers-prev with invisible lines

Skip invisible text at BOL possibly hidden by
the end of another invisible overlay covering
previous EOL.

This patch affects people using mu4e-thread-folding-mode but change nothing
when using mu4e as it is.
This commit is contained in:
Thierry Volpiatto 2021-07-12 06:47:36 +02:00
parent 40b5b89775
commit 617e8023f6
No known key found for this signature in database
GPG Key ID: 08FDB07A7433A7F2
1 changed files with 7 additions and 2 deletions

View File

@ -1846,8 +1846,13 @@ docid. Otherwise, return nil."
(cl-flet ((goto-next-line
(arg)
(condition-case _err
(and (let (line-move-visual)
(line-move arg)) 0)
(prog1
(let (line-move-visual)
(and (line-move arg) 0))
;; Skip invisible text at BOL possibly hidden by
;; the end of another invisible overlay covering
;; previous EOL.
(move-to-column 2))
((beginning-of-buffer end-of-buffer)
1))))
(let* ((_succeeded (zerop (goto-next-line lines)))