success closing active prompt instance

Need to run:
`cli.current_buffer.accept_action.validate_and_handle(cli, document)`
This commit is contained in:
Gil Forsyth 2015-12-20 18:06:09 -05:00
parent 0b9d3559c3
commit 9a616cd7f5

View file

@ -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,