]> git.notmuchmail.org Git - notmuch/commitdiff
Fix bug in adding or removing tag by region.
authorJesse Rosenthal <jrosenthal@jhu.edu>
Tue, 13 Apr 2010 18:47:19 +0000 (14:47 -0400)
committerCarl Worth <cworth@cworth.org>
Wed, 14 Apr 2010 17:09:53 +0000 (10:09 -0700)
There was a bug in notmuch-search-{add,remove}-tag-region, which would
not behave correctly if the region went beyond the last message. Now,
instead of simply iterating to the last line of the region, these
functions will iterate to the minimum of the last line of the region
and the last possible line, i.e.

(- (line-number-at-pos (point-max)) 2)

Tested-by: Carl Worth <cworth@cworth.org> Note that the old, buggy
behavior included infinite loops of emacs lisp code, so the new
behavior is significantly better than that.


No differences found