diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index f2438cebe..60844029f 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -1022,7 +1022,7 @@ class CommandDispatcher: elif config.val.tabs.wrap: self._set_current_index(newidx % self._count()) else: - raise cmdexc.CommandError("First tab") + log.webview.debug("First tab") @cmdutils.register(instance='command-dispatcher', scope='window') @cmdutils.argument('count', count=True) @@ -1042,7 +1042,7 @@ class CommandDispatcher: elif config.val.tabs.wrap: self._set_current_index(newidx % self._count()) else: - raise cmdexc.CommandError("Last tab") + log.webview.debug("Last tab") def _resolve_buffer_index(self, index): """Resolve a buffer index to the tabbedbrowser and tab. diff --git a/tests/end2end/features/tabs.feature b/tests/end2end/features/tabs.feature index 7a36b60cb..1841ef9c9 100644 --- a/tests/end2end/features/tabs.feature +++ b/tests/end2end/features/tabs.feature @@ -336,13 +336,13 @@ Feature: Tab management When I set tabs.wrap to false And I open data/numbers/1.txt And I run :tab-prev - Then the error "First tab" should be shown + Then "First tab" should be logged Scenario: :tab-next with last tab without wrap When I set tabs.wrap to false And I open data/numbers/1.txt And I run :tab-next - Then the error "Last tab" should be shown + Then "Last tab" should be logged Scenario: :tab-prev on first tab with wrap When I set tabs.wrap to true