mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +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
|
# No text? Query
|
||||||
if compose and not args.text:
|
if compose and not args.text:
|
||||||
args.text = [raw_input("Compose Entry: ")]
|
raw = raw_input("Compose Entry: ")
|
||||||
|
if raw:
|
||||||
# Nothing entered? Go to viewing mode.
|
args.text = [raw]
|
||||||
if not args.text:
|
else:
|
||||||
compose = False
|
compose = False
|
||||||
|
|
||||||
# Writing mode
|
# Writing mode
|
||||||
|
|
Loading…
Add table
Reference in a new issue