Revert "Open startpage with :tabopen/:backtabopen if no URL is given"
This reverts commit 68556a0e87
.
This broke keybindings with partial commands, e.g. o/O.
This commit is contained in:
parent
5acd540eb1
commit
0d104b5813
@ -316,18 +316,14 @@ class TabbedBrowser(TabWidget):
|
||||
self._close_tab(tab)
|
||||
|
||||
@cmdutils.register(instance='mainwindow.tabs', split=False, name='tabopen')
|
||||
def tabopen_cmd(self, url=None):
|
||||
def tabopen_cmd(self, url):
|
||||
"""Open a new tab with a given url."""
|
||||
if url is None:
|
||||
url = config.get('general', 'startpage')[0]
|
||||
self.tabopen(url, background=False)
|
||||
|
||||
@cmdutils.register(instance='mainwindow.tabs', split=False,
|
||||
name='backtabopen')
|
||||
def backtabopen_cmd(self, url=None):
|
||||
def backtabopen_cmd(self, url):
|
||||
"""Open a new tab in background."""
|
||||
if url is None:
|
||||
url = config.get('general', 'startpage')[0]
|
||||
self.tabopen(url, background=True)
|
||||
|
||||
@cmdutils.register(instance='mainwindow.tabs', hide=True)
|
||||
|
Loading…
Reference in New Issue
Block a user