Merge remote-tracking branch 'origin/pr/3180'
This commit is contained in:
commit
bd0289423e
@ -555,6 +555,10 @@ class CommandDispatcher:
|
|||||||
tabbed_browser = self._new_tabbed_browser(
|
tabbed_browser = self._new_tabbed_browser(
|
||||||
private=self._tabbed_browser.private)
|
private=self._tabbed_browser.private)
|
||||||
else:
|
else:
|
||||||
|
if win_id not in objreg.window_registry:
|
||||||
|
raise cmdexc.CommandError(
|
||||||
|
"There's no window with id {}!".format(win_id))
|
||||||
|
|
||||||
tabbed_browser = objreg.get('tabbed-browser', scope='window',
|
tabbed_browser = objreg.get('tabbed-browser', scope='window',
|
||||||
window=win_id)
|
window=win_id)
|
||||||
|
|
||||||
|
@ -1058,6 +1058,11 @@ Feature: Tab management
|
|||||||
And I run :tab-give
|
And I run :tab-give
|
||||||
Then the error "Cannot detach from a window with only one tab" should be shown
|
Then the error "Cannot detach from a window with only one tab" should be shown
|
||||||
|
|
||||||
|
Scenario: Give a tab to a window ID that does not exist
|
||||||
|
When I open data/hello.txt
|
||||||
|
And I run :tab-give 99
|
||||||
|
Then the error "There's no window with id 99!" should be shown
|
||||||
|
|
||||||
# Other
|
# Other
|
||||||
|
|
||||||
Scenario: Using :tab-next after closing last tab (#1448)
|
Scenario: Using :tab-next after closing last tab (#1448)
|
||||||
|
Loading…
Reference in New Issue
Block a user