Merge pull request #1151 from gilbertw1/fix-mark-headers-region

mu4e: Fix region bounds checking when marking headers in mu4e
This commit is contained in:
Dirk-Jan C. Binnema
2018-07-11 21:35:57 +03:00
committed by GitHub

View File

@ -324,7 +324,7 @@ headers in the region. Optionally, provide TARGET (for moves)."
(save-excursion (save-excursion
(let ((cant-go-further) (eor (region-end))) (let ((cant-go-further) (eor (region-end)))
(goto-char (region-beginning)) (goto-char (region-beginning))
(while (and (<= (point) eor) (not cant-go-further)) (while (and (< (point) eor) (not cant-go-further))
(mu4e-mark-at-point mark target) (mu4e-mark-at-point mark target)
(setq cant-go-further (not (mu4e-headers-next)))))))) (setq cant-go-further (not (mu4e-headers-next))))))))