##// END OF EJS Templates
Backport PR #10153: Use prompt_toolkit's patch_stdout_context when finding completions...
Min RK -
Show More
@@ -39,6 +39,10 b' class IPythonPTCompleter(Completer):'
39 39 if not document.current_line.strip():
40 40 return
41 41
42 # Some bits of our completion system may print stuff (e.g. if a module
43 # is imported). This context manager ensures that doesn't interfere with
44 # the prompt.
45 with self.shell.pt_cli.patch_stdout_context():
42 46 used, matches = self.ipy_completer.complete(
43 47 line_buffer=document.current_line,
44 48 cursor_pos=document.cursor_position_col
General Comments 0
You need to be logged in to leave comments. Login now