1.1 --- a/iixr/phrases.py Fri Nov 26 01:07:30 2010 +0100
1.2 +++ b/iixr/phrases.py Fri Dec 17 00:06:13 2010 +0100
1.3 @@ -4,7 +4,7 @@
1.4 Phrase iterators providing navigation over common positions for a number of
1.5 different terms.
1.6
1.7 -Copyright (C) 2009 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2009, 2010 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -176,8 +176,8 @@
1.13 # NOTE: index/position.
1.14
1.15 if isinstance(last, (list, tuple)):
1.16 - return current[0] - last[0] <= 1
1.17 + return current[0] - last[0] == 1
1.18 else:
1.19 - return current - last <= 1
1.20 + return current - last == 1
1.21
1.22 # vim: tabstop=4 expandtab shiftwidth=4