Kaydet (Commit) 0e65fe4b authored tarafından Andrew M. Kuchling's avatar Andrew M. Kuchling

Fix off-by-one error that resulted in missed characters

üst 1cc98af8
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment