diff options
| author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2021-02-12 09:42:31 +0100 | 
|---|---|---|
| committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2021-02-12 09:43:10 +0100 | 
| commit | 93c0c15812fde8c113b4141004de130a5ff328ad (patch) | |
| tree | a0da73d4b0d561ea3df571743c8a7416586a0d10 | |
| parent | 02ea5f0f21809faf7c5ee99f79c5ba684ff8fba5 (diff) | |
Fix calling .auto() before editing an entry. refs: #8
| -rw-r--r-- | CHANGELOG.rst | 3 | ||||
| -rw-r--r-- | lesana/command.py | 2 | 
2 files changed, 4 insertions, 1 deletions
| 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) | 
