From 5fdacfbaca11d4fca7eaf2051bb1e1d15deb7bd0 Mon Sep 17 00:00:00 2001 From: karimpwnz Date: Mon, 4 Jan 2021 04:47:22 +0200 Subject: [PATCH] Add space between tmpfile and editor command in Windows' parsed_editor_path --- jrnl/editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jrnl/editor.py b/jrnl/editor.py index 7240683a..638019b7 100644 --- a/jrnl/editor.py +++ b/jrnl/editor.py @@ -28,7 +28,7 @@ def get_text_from_editor(config, template=""): # https://stackoverflow.com/questions/33560364/python-windows-parsing-command-lines-with-shlex # https://bugs.python.org/issue1724822 if on_windows: - parsed_editor_path = config["editor"] + tmpfile + parsed_editor_path = config["editor"] + " " + tmpfile else: parsed_editor_path = shlex.split(config["editor"]) + [tmpfile] subprocess.call(parsed_editor_path)