From 93c0c15812fde8c113b4141004de130a5ff328ad Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Fri, 12 Feb 2021 09:42:31 +0100 Subject: Fix calling .auto() before editing an entry. refs: #8 --- CHANGELOG.rst | 3 +++ lesana/command.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 3d29b90..21782eb 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,9 @@ Unreleased ========== +* Fixes running on an environment where EDITOR is not set. #7 +* Fixes editing an entry. #8 + 0.8.0 ===== diff --git a/lesana/command.py b/lesana/command.py index 9c27eca..2ef52e7 100644 --- a/lesana/command.py +++ b/lesana/command.py @@ -161,7 +161,7 @@ class Edit(Command): ) entry = entries[0] # update the entry before editing it - entry.update() + entry.auto() collection.save_entries([entry]) # and then edit the updated file filepath = os.path.join(collection.itemdir, entry.fname) -- cgit v1.2.3