You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/akuchling'closed_at=<Date2008-06-22.13:56:10.671>created_at=<Date2008-05-01.16:39:39.992>labels= ['type-bug', 'library']
title='curses.textpad loses characters at the end of lines'updated_at=<Date2008-06-22.13:56:10.632>user='https://bugs.python.org/shish'
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)
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: