diff options
Diffstat (limited to 'qutebrowser/browser/browsertab.py')
-rw-r--r-- | qutebrowser/browser/browsertab.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qutebrowser/browser/browsertab.py b/qutebrowser/browser/browsertab.py index ca6a9c483..e87ac806e 100644 --- a/qutebrowser/browser/browsertab.py +++ b/qutebrowser/browser/browsertab.py @@ -310,6 +310,10 @@ class SearchMatch: self.current = 0 self.total = 0 + def is_null(self) -> bool: + """Whether the SearchMatch is set to zero.""" + return self.current == 0 and self.total == 0 + def at_limit(self, going_up: bool) -> bool: """Whether the SearchMatch is currently at the first/last result.""" return ( |