From 8462a4a1264fb79d9268c3b98d225a01ab6005a9 Mon Sep 17 00:00:00 2001 From: toofar Date: Sun, 20 Apr 2025 18:48:35 +1200 Subject: [PATCH] fix merge Somehow I lost the changes from #8329 in the merge. Hmm, I hope I didn't lose anything else! --- qutebrowser/browser/commands.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index 293950d65..944884acc 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -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)