From beaebbb562fc011651659bcc2608701dfecc0092 Mon Sep 17 00:00:00 2001 From: Manuel Ebert Date: Thu, 5 Apr 2012 12:12:58 +0200 Subject: [PATCH] Fixed skip composing on empty input --- jrnl.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jrnl.py b/jrnl.py index e0cdaf97..ed0ba75f 100755 --- a/jrnl.py +++ b/jrnl.py @@ -208,11 +208,11 @@ if __name__ == "__main__": # No text? Query if compose and not args.text: - args.text = [raw_input("Compose Entry: ")] - - # Nothing entered? Go to viewing mode. - if not args.text: - compose = False + raw = raw_input("Compose Entry: ") + if raw: + args.text = [raw] + else: + compose = False # Writing mode if compose: