Use cmdutils.check_exclusive for :tab-clone.

This commit is contained in:
Florian Bruhin 2015-11-26 20:11:53 +01:00
parent 26bbf11ed2
commit 8e7a76280b

View File

@ -330,8 +330,7 @@ class CommandDispatcher:
Return:
The new QWebView.
"""
if bg and window:
raise cmdexc.CommandError("Only one of -b/-w can be given!")
cmdutils.check_exclusive((bg, window), 'bw')
curtab = self._current_widget()
cur_title = self._tabbed_browser.page_title(self._current_index())
# The new tab could be in a new tabbed_browser (e.g. because of