Make suffix local variable in get_text_from_editor

This commit is contained in:
karimpwnz 2021-01-02 22:25:52 +02:00
parent d5bc066483
commit f527a93d5d

View file

@ -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