From 743cc47229c08c189b724754c91e29016b420bcd Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 25 Aug 2014 15:40:48 +0200 Subject: [PATCH] Default to delta=1 for gl/gr. --- qutebrowser/browser/commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index e1225d892..f57979a24 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -119,7 +119,9 @@ class CommandDispatcher: delta: Delta to the current tab. """ if delta is None: - raise ValueError + # We don't set delta to 1 in the function arguments because this + # gets called from tab_move which has delta set to None by default. + delta = 1 if direction == '-': return self._tabs.currentIndex() - delta elif direction == '+':