fix merge

Somehow I lost the changes from #8329 in the merge. Hmm, I hope I didn't
lose anything else!
This commit is contained in:
toofar 2025-04-20 18:48:35 +12:00
parent e6524f7959
commit 8462a4a126
1 changed files with 0 additions and 8 deletions

View File

@ -917,10 +917,6 @@ class CommandDispatcher:
count: How many tabs to switch back.
sibling: Whether to focus the previous tree sibling.
"""
if self._count() == 0:
# Running :tab-prev after last tab was closed
# See https://github.com/qutebrowser/qutebrowser/issues/1448
return
if sibling and self._tabbed_browser.is_treetabbedbrowser:
cur_node = self._current_widget().node
siblings = list(cur_node.parent.children)
@ -955,10 +951,6 @@ class CommandDispatcher:
count: How many tabs to switch forward.
sibling: Whether to focus the next tree sibling.
"""
if self._count() == 0:
# Running :tab-next after last tab was closed
# See https://github.com/qutebrowser/qutebrowser/issues/1448
return
if sibling and self._tabbed_browser.is_treetabbedbrowser:
cur_node = self._current_widget().node
siblings = list(cur_node.parent.children)