mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 00:41:00 +01:00
success closing active prompt instance
Need to run: `cli.current_buffer.accept_action.validate_and_handle(cli, document)`
This commit is contained in:
parent
0b9d3559c3
commit
9a616cd7f5
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue