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