From e0177f4f0bff1d7876de8599783ceab479a081fb Mon Sep 17 00:00:00 2001 From: MinchinWeb Date: Tue, 5 May 2015 11:58:15 -0600 Subject: [PATCH] Fixes #348 Also fixes #322 on windows. --- jrnl/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jrnl/util.py b/jrnl/util.py index bb561308..e61d0139 100644 --- a/jrnl/util.py +++ b/jrnl/util.py @@ -122,7 +122,7 @@ def get_text_from_editor(config, template=""): with codecs.open(tmpfile, 'w', "utf-8") as f: if template: f.write(template) - subprocess.call(shlex.split(config['editor']) + [tmpfile]) + subprocess.call(shlex.split(config['editor'], posix="win" not in sys.platform) + [tmpfile]) with codecs.open(tmpfile, "r", "utf-8") as f: raw = f.read() os.close(filehandle)