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:
parent
2f520f3b17
commit
776c4c4400
@ -1862,6 +1862,8 @@ class CommandDispatcher:
|
|||||||
window: Open in a new window.
|
window: Open in a new window.
|
||||||
count: The tab index to open the URL in, or None.
|
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)
|
ed = editor.ExternalEditor(self._win_id, self._tabbed_browser)
|
||||||
|
|
||||||
# Passthrough for openurl args (e.g. -t, -b, -w)
|
# Passthrough for openurl args (e.g. -t, -b, -w)
|
||||||
|
Loading…
Reference in New Issue
Block a user