diff --git a/qutebrowser/models/basecompletion.py b/qutebrowser/models/basecompletion.py index 9430efe10..c020d4d40 100644 --- a/qutebrowser/models/basecompletion.py +++ b/qutebrowser/models/basecompletion.py @@ -59,6 +59,8 @@ class BaseCompletionModel(QStandardItemModel): marks = [] if not needle: return marks + needle = needle.casefold() + haystack = haystack.casefold() while True: pos1 = haystack.find(needle, pos2) if pos1 == -1: diff --git a/qutebrowser/models/completionfilter.py b/qutebrowser/models/completionfilter.py index 1a5bbd36a..161e54af0 100644 --- a/qutebrowser/models/completionfilter.py +++ b/qutebrowser/models/completionfilter.py @@ -141,7 +141,7 @@ class CompletionFilterModel(QSortFilterProxyModel): # TODO more sophisticated filtering if not self._pattern: return True - return self._pattern in data + return self._pattern.casefold() in data.casefold() def lessThan(self, lindex, rindex): """Custom sorting implementation.