diff options
author | toonn <toonn@toonn.io> | 2019-12-28 19:06:57 +0100 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2019-12-28 19:06:57 +0100 |
commit | fa419ceff282da0d8426909f5c7d044cad708bca (patch) | |
tree | a904663f7892c65e8b7168f3f3ea381fb54405c1 /ranger | |
parent | 6ffe1183daa665e3790ad456119f7705263af3da (diff) | |
download | ranger-fa419ceff282da0d8426909f5c7d044cad708bca.tar.gz |
Avoid adding newlines to paths
Diffstat (limited to 'ranger')
-rwxr-xr-x | ranger/config/commands.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py index d1e4bdbc..554ea1f8 100755 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -1084,7 +1084,7 @@ class bulkrename(Command): self.fm.execute_file([File(listpath)], app='editor') with (open(listpath, 'r', encoding="utf-8", errors="surrogateescape") if py3 else open(listpath, 'r')) as listfile: - new_filenames = listfile.readlines() + new_filenames = listfile.read().split("\n") os.unlink(listpath) if all(a == b for a, b in zip(filenames, new_filenames)): self.fm.notify("No renaming to be done!") |