launcher: Case-insensitivity

This commit is contained in:
Kenny Levinsen
2019-08-02 17:09:48 +02:00
parent e84ebf36dc
commit 6f474a9a77
+1 -1
View File
@@ -125,7 +125,7 @@ impl ModuleImpl for Launcher {
self.matches = self self.matches = self
.options .options
.iter() .iter()
.filter(|x| x.len() >= self.cur.len() && x[0..self.cur.len()] == self.cur) .filter(|x| x.len() >= self.cur.len() && x[0..self.cur.len()].to_lowercase() == self.cur.to_lowercase())
.map(|x| x.to_string()) .map(|x| x.to_string())
.collect(); .collect();