about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2019-12-28 19:06:57 +0100
committertoonn <toonn@toonn.io>2019-12-28 19:06:57 +0100
commitfa419ceff282da0d8426909f5c7d044cad708bca (patch)
treea904663f7892c65e8b7168f3f3ea381fb54405c1
parent6ffe1183daa665e3790ad456119f7705263af3da (diff)
downloadranger-fa419ceff282da0d8426909f5c7d044cad708bca.tar.gz
Avoid adding newlines to paths
-rwxr-xr-xranger/config/commands.py2
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!")
/a> ^
8fb0e672 ^

b0bf5321 ^
77d5b5d6 ^
104854ca ^
748b6865 ^
8fb0e672 ^

b0bf5321 ^
77d5b5d6 ^
104854ca ^
748b6865 ^
b0bf5321 ^
748b6865 ^




8fb0e672 ^

b0bf5321 ^
77d5b5d6 ^
104854ca ^
5fdd8e96 ^
b0bf5321 ^
502d2ea5 ^
104854ca ^
8fb0e672 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
                                                                  

                  
                              

 
                                                                   
             

                           

                                         

 
                                                          
             
                  
                                 

 
                                                                                      
             
                  
                                     
                                                   




                                                 

 
                                                        
             
                  
                                     
                                                   
                         
                                     
 
n39'>39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79