Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 233c798

Browse files
committed
gh-124927: Fix conversion issue between coordinates and position in REPL
1 parent 77596c2 commit 233c798

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/_pyrepl/reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ def setpos_from_xy(self, x: int, y: int) -> None:
577577
cur_x = self.screeninfo[i][0]
578578
while cur_x < x:
579579
if self.screeninfo[i][1][j] == 0:
580-
j += 1 # prevent infinite loop
580+
j += 1 # prevent potential future infinite loop
581581
continue
582582
cur_x += self.screeninfo[i][1][j]
583583
j += 1

0 commit comments

Comments
 (0)