Default to delta=1 for gl/gr.

This commit is contained in:
Florian Bruhin 2014-08-25 15:40:48 +02:00
parent c37552893b
commit 743cc47229

View File

@ -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 == '+':