Skip to content

Commit 9e8cf1c

Browse files
fix raw_input cursor position regression
--HG-- branch : scroll-frontend
1 parent 89f73ea commit 9e8cf1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/scrollfrontend/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ def paint(self, about_to_exit=False):
685685
# extra character for space for the cursor
686686
cursor_row = current_line_start_row + len(lines) - 1
687687
if self.stdin.has_focus:
688-
cursor_column = len(self.current_stdouterr_line) - self.stdin.cursor_offset_in_line
688+
cursor_column = len(self.current_stdouterr_line) + self.stdin.cursor_offset_in_line
689689
assert cursor_column >= 0, cursor_column
690690
elif self.coderunner.running:
691691
cursor_column = len(self.current_cursor_line) + self.cursor_offset_in_line

0 commit comments

Comments
 (0)