mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
[Bug #1152762] Ensure _end_of_line() returns an x-coordinate that's within the text box
This commit is contained in:
parent
d80ef02ec0
commit
76276177de
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ class Textbox:
|
||||||
last = self.maxx
|
last = self.maxx
|
||||||
while 1:
|
while 1:
|
||||||
if ascii.ascii(self.win.inch(y, last)) != ascii.SP:
|
if ascii.ascii(self.win.inch(y, last)) != ascii.SP:
|
||||||
last = last + 1
|
last = min(self.maxx, last+1)
|
||||||
break
|
break
|
||||||
elif last == 0:
|
elif last == 0:
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue