Check redirect before patterns

This commit is contained in:
Florian Bruhin 2018-09-02 14:41:41 +02:00
parent b0185e3c8a
commit ed67263a64

View File

@ -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),