From eeadeb400cbea96dc3713ea3a2afcdb051b84eda Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 2 Dec 2015 06:20:41 +0100 Subject: [PATCH] Style fix. --- qutebrowser/browser/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index 4fad5f8fb..f36f9172b 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -900,8 +900,9 @@ class CommandDispatcher: new_idx = self._current_index() - delta elif direction == '+': # pragma: no branch new_idx = self._current_index() + delta + if config.get('tabs', 'wrap'): - new_idx = new_idx % self._count() + new_idx %= self._count() else: # pragma: no cover raise ValueError("Invalid direction '{}'!".format(direction))