From 89f48d90f9bf528987072afe09161ebddf217c82 Mon Sep 17 00:00:00 2001 From: Pullusb Date: Wed, 15 Sep 2021 10:34:35 +0200 Subject: [PATCH] fix renumbering for last shot --- fn.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fn.py b/fn.py index 6f88f44..7a2ee3b 100644 --- a/fn.py +++ b/fn.py @@ -414,11 +414,13 @@ def renumber_keep_existing(fo, offset=10): print('-->', idx, fs.path) if idx == last_idx: # handle last + print('last >>', fs.path) + print(ct) if idx > 0: prev = fsl[idx-1] num = get_num(prev) if num is not None: - break + add_fileslot_number(fs, num + offset) else: add_fileslot_number(fs, ct) else: