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:
|
if stop == 0 and self.stripspaces:
|
||||||
continue
|
continue
|
||||||
for x in range(self.maxx+1):
|
for x in range(self.maxx+1):
|
||||||
if self.stripspaces and x == stop:
|
if self.stripspaces and x > stop:
|
||||||
break
|
break
|
||||||
result = result + chr(ascii.ascii(self.win.inch(y, x)))
|
result = result + chr(ascii.ascii(self.win.inch(y, x)))
|
||||||
if self.maxy > 0:
|
if self.maxy > 0:
|
||||||
|
|
Loading…
Reference in New Issue