diff --git a/IPython/terminal/shortcuts.py b/IPython/terminal/shortcuts.py index 3a0017c..615397a 100644 --- a/IPython/terminal/shortcuts.py +++ b/IPython/terminal/shortcuts.py @@ -271,7 +271,7 @@ def create_ipython_shortcuts(shell): def _apply_autosuggest(event): b = event.current_buffer suggestion = b.suggestion - if suggestion: + if suggestion is not None and suggestion.text: b.insert_text(suggestion.text) else: nc.end_of_line(event)