##// END OF EJS Templates
Use enter to select completion, but do not submit code....
Matthias Bussonnier -
Show More
@@ -181,6 +181,12 b' class TerminalInteractiveShell(InteractiveShell):'
181 def _(event):
181 def _(event):
182 b = event.current_buffer
182 b = event.current_buffer
183 d = b.document
183 d = b.document
184
185 if b.complete_state:
186 cs = b.complete_state
187 b.apply_completion(cs.current_completion)
188 return
189
184 if not (d.on_last_line or d.cursor_position_row >= d.line_count
190 if not (d.on_last_line or d.cursor_position_row >= d.line_count
185 - d.empty_line_count_at_the_end()):
191 - d.empty_line_count_at_the_end()):
186 b.newline()
192 b.newline()
General Comments 0
You need to be logged in to leave comments. Login now