diff --git a/qutebrowser/commands/command.py b/qutebrowser/commands/command.py index 5e9130b0b..0904abf95 100644 --- a/qutebrowser/commands/command.py +++ b/qutebrowser/commands/command.py @@ -537,7 +537,10 @@ class Command: def takes_count(self): """Return true iff this command can take a count argument.""" - return any(arg.count for arg in self._qute_args) + count_values = [usertypes.CommandValue.count, + usertypes.CommandValue.count_tab] + return any(info.value in count_values + for info in self._qute_args.values()) def register(self): """Register this command in objects.commands."""