Skip to content

Commit 5255a46

Browse files
fix #319
1 parent a6097ae commit 5255a46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ def paint(self, about_to_exit=False, user_quit=False):
823823
current_line_end_row = current_line_start_row + len(lines) - 1
824824

825825
if self.stdin.has_focus:
826-
cursor_row, cursor_column = divmod(len(self.current_stdouterr_line_without_suggestion) + self.stdin.cursor_offset, width)
826+
cursor_row, cursor_column = divmod(len(self.current_stdouterr_line) + self.stdin.cursor_offset, width)
827827
assert cursor_column >= 0, cursor_column
828828
elif self.coderunner.running: #TODO does this ever happen?
829829
cursor_row, cursor_column = divmod(len(self.current_cursor_line_without_suggestion) + self.cursor_offset, width)

0 commit comments

Comments
 (0)