From 592f436fd4aadbdd544ad193f23279cf4e85b7c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sun, 1 May 2022 21:05:05 +0200 Subject: [PATCH] correctly set parameters for subprocess starting vim --- scripts/window_subprocess.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/window_subprocess.py b/scripts/window_subprocess.py index 89fb84f..e6636d2 100644 --- a/scripts/window_subprocess.py +++ b/scripts/window_subprocess.py @@ -13,7 +13,10 @@ def edit(filepath: Path, rootpath: Path = None, env=os.environ, servername='tex subprocess.Popen([ terminal(), "-e", - f"vim --servername {servername} --remote-silent {str(filepath)}" + f"vim", + f"--servername {servername}", + f"--remote-silent", + f"{str(filepath)}" ], env=env, cwd=str(rootpath))