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: