summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJethro Cao <jethrocao@gmail.com>2019-12-18 00:56:41 +0700
committerJethro Cao <jethrocao@gmail.com>2019-12-18 01:04:23 +0700
commit1c7fb675501ccc52d4f39870074d49fbbe64608f (patch)
tree4a29918d1a673297eefca127bc152299e2912014
parent7e8a1f0e206715d1b2741109651dbf281bad92f2 (diff)
downloadqutebrowser-1c7fb675501ccc52d4f39870074d49fbbe64608f.tar.gz
qutebrowser-1c7fb675501ccc52d4f39870074d49fbbe64608f.zip
Add buffer resolution cond for tabs_are_windows
-rw-r--r--qutebrowser/browser/commands.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py
index 871d0f673..b59cb6d26 100644
--- a/qutebrowser/browser/commands.py
+++ b/qutebrowser/browser/commands.py
@@ -848,6 +848,8 @@ class CommandDispatcher:
if len(index_parts) == 2:
win_id = int(index_parts[0])
idx = int(index_parts[1])
+ elif len(index_parts) == 1 and config.val.tabs.tabs_are_windows:
+ win_id, idx = int(index_parts[0]) - 1, 1
elif len(index_parts) == 1:
idx = int(index_parts[0])
active_win = QApplication.activeWindow()