Show More
@@ -89,11 +89,13 b' class PTInteractiveShell(InteractiveShell):' | |||
|
89 | 89 | )) |
|
90 | 90 | def _(event): |
|
91 | 91 | b = event.current_buffer |
|
92 |
|
|
|
92 | d = b.document | |
|
93 | if not (d.on_last_line or d.cursor_position_row >= d.line_count | |
|
94 | - d.empty_line_count_at_the_end()): | |
|
93 | 95 | b.newline() |
|
94 | 96 | return |
|
95 | 97 | |
|
96 |
status, indent = self.input_splitter.check_complete( |
|
|
98 | status, indent = self.input_splitter.check_complete(d.text) | |
|
97 | 99 | |
|
98 | 100 | if (status != 'incomplete') and b.accept_action.is_returnable: |
|
99 | 101 | b.accept_action.validate_and_handle(event.cli, b) |
General Comments 0
You need to be logged in to leave comments.
Login now