mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-07 08:46:13 +02:00
Merge pull request #744 from alichtman/exit-after-no-text-entry
Exit jrnl if no text entered into editor
This commit is contained in:
commit
0bd94c7872
4 changed files with 53 additions and 3 deletions
|
@ -176,7 +176,7 @@ def run(manual_args=None):
|
|||
|
||||
log.debug('Using journal "%s"', journal_name)
|
||||
mode_compose, mode_export, mode_import = guess_mode(args, config)
|
||||
|
||||
|
||||
# How to quit writing?
|
||||
if "win32" in sys.platform:
|
||||
_exit_multiline_code = "on a blank line, press Ctrl+Z and then Enter"
|
||||
|
@ -206,7 +206,7 @@ def run(manual_args=None):
|
|||
if raw:
|
||||
args.text = [raw]
|
||||
else:
|
||||
mode_compose = False
|
||||
sys.exit()
|
||||
|
||||
# This is where we finally open the journal!
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue