diff --git a/jrnl/editor.py b/jrnl/editor.py index ea89a9ec..1a68028d 100644 --- a/jrnl/editor.py +++ b/jrnl/editor.py @@ -12,7 +12,8 @@ from .color import RESET_COLOR from .os_compat import on_windows -def get_text_from_editor(config, template="", suffix=".jrnl"): +def get_text_from_editor(config, template=""): + suffix = ".jrnl" if config["template"]: template_filename = Path(config["template"]).name suffix = "-" + template_filename