diff options
-rwxr-xr-x | ranger/config/commands.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py index 93da7fe2..fe628e75 100755 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -996,11 +996,7 @@ class rename_append(Command): relpath = tfile.relative_path.replace(MACRO_DELIMITER, MACRO_DELIMITER_ESC) basename = tfile.basename.replace(MACRO_DELIMITER, MACRO_DELIMITER_ESC) - if basename.find('.') <= 0: - self.fm.open_console('rename ' + relpath) - return - - if os.path.isdir(relpath): + if basename.find('.') <= 0 or os.path.isdir(relpath): self.fm.open_console('rename ' + relpath) return |