:tab-move: Fix tab index shown in error message.

This commit is contained in:
Florian Bruhin 2015-11-26 16:37:54 +01:00
parent 5a95cfdc7a
commit 987ee59f58

View File

@ -925,7 +925,7 @@ class CommandDispatcher:
raise ValueError("Invalid direction '{}'!".format(direction)) raise ValueError("Invalid direction '{}'!".format(direction))
if not 0 <= new_idx < self._count(): if not 0 <= new_idx < self._count():
raise cmdexc.CommandError("Can't move tab to position {}!".format( raise cmdexc.CommandError("Can't move tab to position {}!".format(
new_idx)) new_idx + 1))
tab = self._current_widget() tab = self._current_widget()
cur_idx = self._current_index() cur_idx = self._current_index()
icon = self._tabbed_browser.tabIcon(cur_idx) icon = self._tabbed_browser.tabIcon(cur_idx)