summaryrefslogtreecommitdiff
path: root/patternutils/commands/tmv.py
diff options
context:
space:
mode:
Diffstat (limited to 'patternutils/commands/tmv.py')
-rw-r--r--patternutils/commands/tmv.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/patternutils/commands/tmv.py b/patternutils/commands/tmv.py
index 3b7f5e3..1c61b67 100644
--- a/patternutils/commands/tmv.py
+++ b/patternutils/commands/tmv.py
@@ -126,7 +126,8 @@ def tmv(
if editor:
try:
- new_filenames = utils.edit(new_filenames)
+ if (temporary_filenames := utils.edit(new_filenames)) is not None:
+ new_filenames = temporary_filenames
except RuntimeError:
click.secho("Your edit is not parseable!", fg="red", err=True)
raise SystemExit