This commit is contained in:
Milan Svoboda 2015-12-30 15:54:50 +01:00
parent 4caffccca6
commit ed032ea107

View File

@ -71,8 +71,8 @@ class CompletionFilterModel(QSortFilterProxyModel):
"""
with debug.log_time(log.completion, 'Setting filter pattern'):
self.pattern = val
self.patternre = re.compile(re.escape(val.casefold())
.replace(r'\ ', r'.*'))
self.patternre = re.compile(re.escape(
val.casefold()).replace(r'\ ', r'.*'))
self.invalidateFilter()
sortcol = 0
try: