##// END OF EJS Templates
Backport PR #9936: added namespace condition in IPcompleter...
Matthias Bussonnier -
Show More
@@ -1164,6 +1164,9 b' class IPCompleter(Completer):'
1164 if cursor_pos is None:
1164 if cursor_pos is None:
1165 cursor_pos = len(line_buffer) if text is None else len(text)
1165 cursor_pos = len(line_buffer) if text is None else len(text)
1166
1166
1167 if self.use_main_ns:
1168 self.namespace = __main__.__dict__
1169
1167 if PY3:
1170 if PY3:
1168
1171
1169 base_text = text if not line_buffer else line_buffer[:cursor_pos]
1172 base_text = text if not line_buffer else line_buffer[:cursor_pos]
General Comments 0
You need to be logged in to leave comments. Login now