From 77dd2a105f9f2a50bd285ab6a3e281f63713d716 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 3 Aug 2016 08:57:05 +0200 Subject: [PATCH] Add cmdutils.check_overflow in _set_current_index --- qutebrowser/browser/commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index 56812f056..faddfcdd5 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -86,6 +86,7 @@ class CommandDispatcher: def _set_current_index(self, idx): """Convenience method to set the current widget index.""" + cmdutils.check_overflow(idx, 'int') return self._tabbed_browser.setCurrentIndex(idx) def _current_index(self):