summaryrefslogtreecommitdiff
path: root/qutebrowser/browser/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'qutebrowser/browser/commands.py')
-rw-r--r--qutebrowser/browser/commands.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py
index ab7e60aed..51222521e 100644
--- a/qutebrowser/browser/commands.py
+++ b/qutebrowser/browser/commands.py
@@ -462,6 +462,10 @@ class CommandDispatcher:
keep: If given, keep the old tab around.
count: Overrides win_id (index starts at 1 for win_id=0).
"""
+ if config.val.tabs.tabs_are_windows:
+ raise cmdutils.CommandError("Can't give tabs when using "
+ "windows as tabs")
+
if count is not None:
win_id = count - 1