From 19cc721eb111ba80eb592a385ba3a17e05ce7829 Mon Sep 17 00:00:00 2001 From: thuck Date: Fri, 11 Nov 2016 12:05:04 +0100 Subject: [PATCH] Changed behavior on location of tab being pinned Now when a tab is pinned it goes to the end of all pinned tabs. Before it went to the index 1. --- qutebrowser/browser/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index d9122f869..3230daa46 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -271,6 +271,7 @@ class CommandDispatcher: index: Location where the tab should be pinned/unpinned. count: The tab index to pin or unpin, or None """ + tabbar = self._tabbed_browser.tabBar() tab = self._cntwidget(count) if tab is None: return @@ -278,7 +279,7 @@ class CommandDispatcher: tab.data.pinned = not tab.data.pinned if tab.data.pinned: - index = 1 if index is None else int(index) + index = tabbar.pinned + 1 if index is None else int(index) else: index = self._count() if index is None else int(index)