parent
8b9822e603
commit
c75563907a
@ -762,8 +762,9 @@ class CommandDispatcher:
|
|||||||
formatter = pygments.formatters.HtmlFormatter(
|
formatter = pygments.formatters.HtmlFormatter(
|
||||||
full=True, linenos='table')
|
full=True, linenos='table')
|
||||||
highlighted = pygments.highlight(html, lexer, formatter)
|
highlighted = pygments.highlight(html, lexer, formatter)
|
||||||
|
current_url = self._current_url()
|
||||||
tab = objreg.get('tabbed-browser').tabopen(explicit=True)
|
tab = objreg.get('tabbed-browser').tabopen(explicit=True)
|
||||||
tab.setHtml(highlighted, self._current_url())
|
tab.setHtml(highlighted, current_url)
|
||||||
tab.viewing_source = True
|
tab.viewing_source = True
|
||||||
|
|
||||||
@cmdutils.register(instance='command-dispatcher', name='help',
|
@cmdutils.register(instance='command-dispatcher', name='help',
|
||||||
|
Loading…
Reference in New Issue
Block a user