From b8b49906facddd96f8344d5e9495c1fb05c8e64f Mon Sep 17 00:00:00 2001 From: "andrew.kuchling" Date: Sat, 19 Jan 2008 23:44:39 +0000 Subject: [PATCH] Fix off-by-one error that resulted in missed characters git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@60118 6015fed2-1504-0410-9fe1-9d1591cc4771 --- Lib/curses/textpad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/curses/textpad.py b/Lib/curses/textpad.py index 120c5721e..a25c3fe15 100644 --- a/Lib/curses/textpad.py +++ b/Lib/curses/textpad.py @@ -139,7 +139,7 @@ class Textbox: 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: -- 2.11.4.GIT