Fix off-by-one error that resulted in missed characters
This commit is contained in:
parent
1cc98af8a1
commit
0e65fe4b90
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue