Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix running external commands #5

Merged
merged 1 commit into from
Jul 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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