We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d80ef02 commit 7627617Copy full SHA for 7627617
1 file changed
Lib/curses/textpad.py
@@ -53,7 +53,7 @@ def _end_of_line(self, y):
53
last = self.maxx
54
while 1:
55
if ascii.ascii(self.win.inch(y, last)) != ascii.SP:
56
- last = last + 1
+ last = min(self.maxx, last+1)
57
break
58
elif last == 0:
59
0 commit comments