fix lint
This commit is contained in:
parent
ed032ea107
commit
382f7c6bf1
@ -71,8 +71,10 @@ class CompletionFilterModel(QSortFilterProxyModel):
|
|||||||
"""
|
"""
|
||||||
with debug.log_time(log.completion, 'Setting filter pattern'):
|
with debug.log_time(log.completion, 'Setting filter pattern'):
|
||||||
self.pattern = val
|
self.pattern = val
|
||||||
self.patternre = re.compile(re.escape(
|
val = val.casefold()
|
||||||
val.casefold()).replace(r'\ ', r'.*'))
|
val = re.escape(val)
|
||||||
|
val = val.replace(r'\ ', r'.*')
|
||||||
|
self.patternre = re.compile(val)
|
||||||
self.invalidateFilter()
|
self.invalidateFilter()
|
||||||
sortcol = 0
|
sortcol = 0
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user