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
commit 4807461dbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ headers in the region. Optionally, provide TARGET (for moves)."
(save-excursion
(let ((cant-go-further) (eor (region-end)))
(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)
(setq cant-go-further (not (mu4e-headers-next))))))))