mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 13:08:31 +02:00
Add space between tmpfile and editor command in Windows' parsed_editor_path
This commit is contained in:
parent
ccf7d22a2d
commit
5fdacfbaca
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ def get_text_from_editor(config, template=""):
|
||||||
# https://stackoverflow.com/questions/33560364/python-windows-parsing-command-lines-with-shlex
|
# https://stackoverflow.com/questions/33560364/python-windows-parsing-command-lines-with-shlex
|
||||||
# https://bugs.python.org/issue1724822
|
# https://bugs.python.org/issue1724822
|
||||||
if on_windows:
|
if on_windows:
|
||||||
parsed_editor_path = config["editor"] + tmpfile
|
parsed_editor_path = config["editor"] + " " + tmpfile
|
||||||
else:
|
else:
|
||||||
parsed_editor_path = shlex.split(config["editor"]) + [tmpfile]
|
parsed_editor_path = shlex.split(config["editor"]) + [tmpfile]
|
||||||
subprocess.call(parsed_editor_path)
|
subprocess.call(parsed_editor_path)
|
||||||
|
|
Loading…
Add table
Reference in a new issue