|
27 | 27 | Float,
|
28 | 28 | )
|
29 | 29 |
|
| 30 | +from prompt_toolkit.auto_suggest import AutoSuggestFromHistory |
30 | 31 | from prompt_toolkit.enums import DEFAULT_BUFFER, EditingMode
|
31 | 32 | from prompt_toolkit.filters import (HasFocus, Condition, IsDone)
|
32 | 33 | from prompt_toolkit.formatted_text import PygmentsTokens
|
@@ -353,18 +354,20 @@ def prompt():
|
353 | 354 |
|
354 | 355 | self.pt_loop = asyncio.new_event_loop()
|
355 | 356 | self.pt_app = PromptSession(
|
356 |
| - editing_mode=editing_mode, |
357 |
| - key_bindings=key_bindings, |
358 |
| - history=history, |
359 |
| - completer=IPythonPTCompleter(shell=self), |
360 |
| - enable_history_search = self.enable_history_search, |
361 |
| - style=self.style, |
362 |
| - include_default_pygments_style=False, |
363 |
| - mouse_support=self.mouse_support, |
364 |
| - enable_open_in_editor=self.extra_open_editor_shortcuts, |
365 |
| - color_depth=self.color_depth, |
366 |
| - tempfile_suffix=".py", |
367 |
| - **self._extra_prompt_options()) |
| 357 | + auto_suggest=AutoSuggestFromHistory(), |
| 358 | + editing_mode=editing_mode, |
| 359 | + key_bindings=key_bindings, |
| 360 | + history=history, |
| 361 | + completer=IPythonPTCompleter(shell=self), |
| 362 | + enable_history_search=self.enable_history_search, |
| 363 | + style=self.style, |
| 364 | + include_default_pygments_style=False, |
| 365 | + mouse_support=self.mouse_support, |
| 366 | + enable_open_in_editor=self.extra_open_editor_shortcuts, |
| 367 | + color_depth=self.color_depth, |
| 368 | + tempfile_suffix=".py", |
| 369 | + **self._extra_prompt_options() |
| 370 | + ) |
368 | 371 |
|
369 | 372 | def _make_style_from_name_or_cls(self, name_or_cls):
|
370 | 373 | """
|
|
0 commit comments