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:
Florian Bruhin 2014-05-15 16:54:08 +02:00
parent 5acd540eb1
commit 0d104b5813

View File

@ -316,18 +316,14 @@ class TabbedBrowser(TabWidget):
self._close_tab(tab) self._close_tab(tab)
@cmdutils.register(instance='mainwindow.tabs', split=False, name='tabopen') @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.""" """Open a new tab with a given url."""
if url is None:
url = config.get('general', 'startpage')[0]
self.tabopen(url, background=False) self.tabopen(url, background=False)
@cmdutils.register(instance='mainwindow.tabs', split=False, @cmdutils.register(instance='mainwindow.tabs', split=False,
name='backtabopen') name='backtabopen')
def backtabopen_cmd(self, url=None): def backtabopen_cmd(self, url):
"""Open a new tab in background.""" """Open a new tab in background."""
if url is None:
url = config.get('general', 'startpage')[0]
self.tabopen(url, background=True) self.tabopen(url, background=True)
@cmdutils.register(instance='mainwindow.tabs', hide=True) @cmdutils.register(instance='mainwindow.tabs', hide=True)