correctly set parameters for subprocess starting vim

This commit is contained in:
Maximilian Keßler 2022-05-01 21:05:05 +02:00
parent e8c0830f7d
commit 592f436fd4

View File

@ -13,7 +13,10 @@ def edit(filepath: Path, rootpath: Path = None, env=os.environ, servername='tex
subprocess.Popen([ subprocess.Popen([
terminal(), terminal(),
"-e", "-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)) ], env=env, cwd=str(rootpath))