summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-26 21:37:31 +0200
committerhut <hut@lavabit.com>2010-04-26 21:37:31 +0200
commit4c5e60cbe14cde745d8590cfcc3f098d3e060ca4 (patch)
treee68c0e2c3aeba6d14e024e6b755a9e2177a77519 /ranger
parent292b447675bff7af2f4221da50b20dc49bbe66b6 (diff)
downloadranger-4c5e60cbe14cde745d8590cfcc3f098d3e060ca4.tar.gz
defaults.commands: fixed :find with uppercase search strings
Diffstat (limited to 'ranger')
-rw-r--r--ranger/defaults/commands.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ranger/defaults/commands.py b/ranger/defaults/commands.py
index 8117f1f3..6175b92c 100644
--- a/ranger/defaults/commands.py
+++ b/ranger/defaults/commands.py
@@ -145,8 +145,12 @@ class find(Command):
 		deq = deque(cwd.files)
 		deq.rotate(-cwd.pointer)
 		i = 0
+		case_insensitive = arg.lower() == arg
 		for fsobj in deq:
-			filename = fsobj.basename_lower
+			if case_insensitive:
+				filename = fsobj.basename_lower
+			else:
+				filename = fsobj.basename
 			if arg in filename:
 				self.count += 1
 				if self.count == 1:
='n24' href='#n24'>24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126