This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author shish
Recipients shish
Date 2008-05-01.16:39:30
SpamBayes Score 0.018661072
Marked as misclassified No
Message-id <1209659981.45.0.724290161206.issue2732@psf.upfronthosting.co.za>
In-reply-to
Content
Even in the self-test suite, the bug appears, run:

python /usr/lib/python2.4/curses/textpad.py

then type so that the line wraps, eg 123456789123456789 to fill two 
lines, and then ctrl-g to return -- the result has had the end 
characters of each line removed, so the return value is 
12345678\n12345678\n

As a quick hack on my local install I changed line 56 from:

last = min(self.maxx, last+1)

to

last = min(self.maxx, last)+1

and it seems to work, but I have no idea if this is the right way to 
fix it (ie, this might have side effects, or this off-by-one might 
happen in several places and need a global fix, not just one local one)
History
Date User Action Args
2008-05-01 16:39:42shishsetspambayes_score: 0.0186611 -> 0.018661072
recipients: + shish
2008-05-01 16:39:41shishsetspambayes_score: 0.0186611 -> 0.0186611
messageid: <1209659981.45.0.724290161206.issue2732@psf.upfronthosting.co.za>
2008-05-01 16:39:39shishlinkissue2732 messages
2008-05-01 16:39:37shishcreate