Skip to content

Commit 4ada245

Browse files
fix multiline block completion errors on enter
1 parent e45c56c commit 4ada245

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bpython/test/test_curtsies_painting.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ def enter(self, line=None):
168168
autocompletion that would happen then, but intermediate
169169
stages won't happen"""
170170
if line is not None:
171+
self.repl._set_cursor_offset(len(line), update_completion=False)
171172
self.repl.current_line = line
172173
with output_to_repl(self.repl):
173174
self.repl.on_enter(insert_into_history=False)

0 commit comments

Comments
 (0)