commit | 0e65fe4b904b63f02709ee894d23114018c86c65 | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Sat Jan 19 23:44:39 2008 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Sat Jan 19 23:44:39 2008 +0000 |
tree | 1ccb8872658e5b928c6497ef4f0dae23a030f220 | |
parent | 1cc98af8a1b6689e05f94938ca3a607dccee9e4c [diff] [blame] |
Fix off-by-one error that resulted in missed characters
diff --git a/Lib/curses/textpad.py b/Lib/curses/textpad.py index 120c572..a25c3fe 100644 --- a/Lib/curses/textpad.py +++ b/Lib/curses/textpad.py
@@ -139,7 +139,7 @@ if stop == 0 and self.stripspaces: continue for x in range(self.maxx+1): - if self.stripspaces and x == stop: + if self.stripspaces and x > stop: break result = result + chr(ascii.ascii(self.win.inch(y, x))) if self.maxy > 0: