From 9a616cd7f5d94adce5f8d6e886ba526b97a9a15e Mon Sep 17 00:00:00 2001 From: Gil Forsyth Date: Sun, 20 Dec 2015 18:06:09 -0500 Subject: [PATCH] success closing active prompt instance Need to run: `cli.current_buffer.accept_action.validate_and_handle(cli, document)` --- xonsh/prompt_toolkit_shell.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xonsh/prompt_toolkit_shell.py b/xonsh/prompt_toolkit_shell.py index 3b47c1db6..4fdf806d2 100644 --- a/xonsh/prompt_toolkit_shell.py +++ b/xonsh/prompt_toolkit_shell.py @@ -91,6 +91,10 @@ class PromptToolkitShell(BaseShell): b.document = b.document.insert_after('\n'+env.get('INDENT')) b.cursor_down() + else: + mycli = event.cli + b.accept_action.validate_and_handle(mycli, b) + line = prompt( mouse_support=mouse_support, auto_suggest=auto_suggest,