diff --git a/xonsh/prompt_toolkit_key_bindings.py b/xonsh/prompt_toolkit_key_bindings.py index 06f42e28d..f56671769 100644 --- a/xonsh/prompt_toolkit_key_bindings.py +++ b/xonsh/prompt_toolkit_key_bindings.py @@ -31,6 +31,4 @@ def load_xonsh_bindings(key_bindings_manager): If there are only whitespaces before current cursor position insert indent instead of autocompleting. """ - event.cli.current_buffer.insert_text(env['INDENT']) - - + event.cli.current_buffer.insert_text(env.get('INDENT', ' '))