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

[Bug #1152762] Ensure _end_of_line() returns an x-coordinate that's within the text box

üst d80ef02e
...@@ -53,7 +53,7 @@ class Textbox: ...@@ -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
......
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