Skip to content

Commit

Permalink
Merge pull request #5 from nakagami/exec_command
Browse files Browse the repository at this point in the history
Fix running external commands
  • Loading branch information
nakagami authored Jul 6, 2024
2 parents 91a0b8a + 2e2fae8 commit fb2b5e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyvim/commands/handler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import asyncio
from .grammar import COMMAND_GRAMMAR
from .commands import call_command_handler, has_command_handler, substitute

Expand Down Expand Up @@ -33,7 +34,8 @@ def handle_command(editor, input_string):

elif shell_command is not None:
# Handle shell commands.
editor.application.run_system_command(shell_command)
loop = asyncio.get_event_loop()
loop.create_task(editor.application.run_system_command(shell_command))

elif has_command_handler(command):
# Handle other 'normal' commands.
Expand Down

0 comments on commit fb2b5e3

Please sign in to comment.