mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
Fixed skip composing on empty input
This commit is contained in:
parent
a8dc91ce1c
commit
beaebbb562
1 changed files with 5 additions and 5 deletions
8
jrnl.py
8
jrnl.py
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue