Skip to content

Commit

Permalink
Fix :home with pinned tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Compiler committed Nov 30, 2018
1 parent a7a8f44 commit 4d8c8a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qutebrowser/components/misccommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ def printpage(tab, preview=False, *, pdf=None):
@cmdutils.argument('tab', value=cmdutils.Value.cur_tab)
def home(tab):
"""Open main startpage in current tab."""
tab.load_url(config.val.url.start_pages[0])
if tab.data.pinned:
message.info("Tab is pinned!")
else:
tab.load_url(config.val.url.start_pages[0])


@cmdutils.register(debug=True)
Expand Down

0 comments on commit 4d8c8a5

Please sign in to comment.