Check redirect before patterns
This commit is contained in:
parent
b0185e3c8a
commit
ed67263a64
@ -269,11 +269,11 @@ class WebHistory(sql.SqlTable):
|
||||
'atime': atime,
|
||||
'redirect': redirect})
|
||||
|
||||
if redirect:
|
||||
return
|
||||
if any(pattern.matches(url)
|
||||
for pattern in config.val.completion.web_history.exclude):
|
||||
return
|
||||
if redirect:
|
||||
return
|
||||
|
||||
self.completion.insert({
|
||||
'url': self._format_completion_url(url),
|
||||
|
Loading…
Reference in New Issue
Block a user