Fixed skip composing on empty input

This commit is contained in:
Manuel Ebert 2012-04-05 12:12:58 +02:00
parent a8dc91ce1c
commit beaebbb562

View file

@ -208,10 +208,10 @@ 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:
raw = raw_input("Compose Entry: ")
if raw:
args.text = [raw]
else:
compose = False
# Writing mode