Skip to content

Commit 4a84421

Browse files
Update Lib/_pyrepl/windows_console.py
Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
1 parent fb63940 commit 4a84421

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/_pyrepl/windows_console.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,7 @@ def __write_changed_line(
289289

290290
self.__write(newline[x_pos:])
291291
if wlen(newline) == self.width:
292-
did_wrap = self._has_wrapped_to_next_row(y)
293-
if did_wrap is True:
294-
# Terminal wrapped to next row.
292+
if self._has_wrapped_to_next_row(y):
295293
self.posxy = 0, y + 1
296294
else:
297295
# Terminal did not wrap; cursor stays at end-of-line.

0 commit comments

Comments
 (0)