Skip to content

Commit fb2b5e3

Browse files
authored
Merge pull request #5 from nakagami/exec_command
Fix running external commands
2 parents 91a0b8a + 2e2fae8 commit fb2b5e3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pyvim/commands/handler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import asyncio
12
from .grammar import COMMAND_GRAMMAR
23
from .commands import call_command_handler, has_command_handler, substitute
34

@@ -33,7 +34,8 @@ def handle_command(editor, input_string):
3334

3435
elif shell_command is not None:
3536
# Handle shell commands.
36-
editor.application.run_system_command(shell_command)
37+
loop = asyncio.get_event_loop()
38+
loop.create_task(editor.application.run_system_command(shell_command))
3739

3840
elif has_command_handler(command):
3941
# Handle other 'normal' commands.

0 commit comments

Comments
 (0)