[New-bugs-announce] [issue2732] curses.textpad loses characters at the end of lines

Shish report at bugs.python.org
Thu May 1 18:39:41 CEST 2008

New submission from Shish <shish+python at shishnet.org>:

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 

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

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


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)

components: Extension Modules
messages: 66035
nosy: shish
severity: normal
status: open
title: curses.textpad loses characters at the end of lines
versions: Python 2.4

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list