From 880ada80525ca93c77b200970e8d0986f88c2e64 Mon Sep 17 00:00:00 2001 From: Jonathan Slenders Date: Tue, 20 Oct 2015 03:37:55 +0200 Subject: [PATCH] Correctly handle 'tab' key binding. --- xonsh/prompt_toolkit_key_bindings.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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', ' '))