From dd58becad2a235f0c59b82c16009550291dffa63 Mon Sep 17 00:00:00 2001 From: William Minchin Date: Thu, 2 Jan 2014 17:38:54 -0700 Subject: [PATCH] Make editing work the deleted lines were wiping the temp file, and thus the entry you were trying to edit --- jrnl/util.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/jrnl/util.py b/jrnl/util.py index 504be650..7191cb69 100644 --- a/jrnl/util.py +++ b/jrnl/util.py @@ -129,8 +129,6 @@ def get_text_from_editor(config, template=""): if template: with codecs.open(tmpfile, 'w', "utf-8") as f: f.write(template) - with open(tmpfile, 'w'): - pass subprocess.call(config['editor'].split() + [tmpfile]) with codecs.open(tmpfile, "r", "utf-8") as f: raw = f.read()