Merge branch 'gt' of git://github.com/t-wissmann/qutebrowser into t-wissmann-gt

This commit is contained in:
Florian Bruhin 2015-08-11 21:58:53 +02:00
commit 705544cb05
2 changed files with 5 additions and 1 deletions

View File

@ -882,10 +882,14 @@ class CommandDispatcher:
index: The tab index to focus, starting with 1. The special value
`last` focuses the last focused tab.
count: The tab index to focus, starting with 1.
If neither count nor index are given, it behaves like tab-next
"""
if index == 'last':
self._tab_focus_last()
return
if index is None and count is None:
self.tab_next()
return
try:
idx = cmdutils.arg_or_count(index, count, default=1,
countzero=self._count())

View File

@ -1236,7 +1236,7 @@ KEY_DATA = collections.OrderedDict([
('tab-move', ['gm']),
('tab-move -', ['gl']),
('tab-move +', ['gr']),
('tab-next', ['J', 'gt']),
('tab-focus', ['J', 'gt']),
('tab-prev', ['K', 'gT']),
('tab-clone', ['gC']),
('reload', ['r']),