This commit is contained in:
Milan Svoboda 2015-12-30 16:15:17 +01:00
parent ed032ea107
commit 382f7c6bf1

View File

@ -71,8 +71,10 @@ 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'.*'))
val = val.casefold()
val = re.escape(val)
val = val.replace(r'\ ', r'.*')
self.patternre = re.compile(val)
self.invalidateFilter()
sortcol = 0
try: