mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
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.
This commit is contained in:
parent
49af79cd2a
commit
8392a7cc54
1 changed files with 3 additions and 2 deletions
|
@ -1157,8 +1157,9 @@ current window), advance to the next open message."
|
||||||
(ret nil))
|
(ret nil))
|
||||||
(while (invisible-p visible-end-of-this-message)
|
(while (invisible-p visible-end-of-this-message)
|
||||||
(setq visible-end-of-this-message
|
(setq visible-end-of-this-message
|
||||||
(previous-single-char-property-change visible-end-of-this-message
|
(max (point-min)
|
||||||
'invisible)))
|
(1- (previous-single-char-property-change
|
||||||
|
visible-end-of-this-message 'invisible)))))
|
||||||
(cond
|
(cond
|
||||||
;; Ideally we would test `end-of-this-message' against the result
|
;; Ideally we would test `end-of-this-message' against the result
|
||||||
;; of `window-end', but that doesn't account for the fact that
|
;; of `window-end', but that doesn't account for the fact that
|
||||||
|
|
Loading…
Reference in a new issue