Ensure -t/-b/-w are exclusive in :edit-url

Otherwise those would be passed as-is to :open and an unhandled
cmdexc.CommandError would be raised there.
This commit is contained in:
Florian Bruhin 2016-04-06 06:44:50 +02:00
parent 2f520f3b17
commit 776c4c4400

View File

@ -1862,6 +1862,8 @@ class CommandDispatcher:
window: Open in a new window.
count: The tab index to open the URL in, or None.
"""
cmdutils.check_exclusive((tab, bg, window), 'tbw')
ed = editor.ExternalEditor(self._win_id, self._tabbed_browser)
# Passthrough for openurl args (e.g. -t, -b, -w)