aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/notmuch-show.el
diff options
context:
space:
mode:
authorGravatar Aaron Ecay <aaronecay@gmail.com>2011-12-22 09:24:20 -0500
committerGravatar David Bremner <bremner@debian.org>2011-12-23 08:29:04 -0400
commit8392a7cc54c4c08c0abbf2cc2707774f504ec33f (patch)
treeeff5b2bde26b5ff71b5c86fce63c0defbe70154c /emacs/notmuch-show.el
parent49af79cd2a3be66e482039f1ef05cf909144230e (diff)
emacs: fix off-by-one bug in notmuch-show-archive
Text properties change between characters; prev-s-c-property-change returns the position after the change. Thus, it is still inside the invisible region.
Diffstat (limited to 'emacs/notmuch-show.el')
-rw-r--r--emacs/notmuch-show.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index 98db8f22..b565f336 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -1157,8 +1157,9 @@ current window), advance to the next open message."
(ret nil))
(while (invisible-p visible-end-of-this-message)
(setq visible-end-of-this-message
- (previous-single-char-property-change visible-end-of-this-message
- 'invisible)))
+ (max (point-min)
+ (1- (previous-single-char-property-change
+ visible-end-of-this-message 'invisible)))))
(cond
;; Ideally we would test `end-of-this-message' against the result
;; of `window-end', but that doesn't account for the fact that