Fix :view-source
This commit is contained in:
parent
15a2be877a
commit
a19b6bf563
@ -818,7 +818,6 @@ class CommandDispatcher:
|
|||||||
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()
|
current_url = self._current_url()
|
||||||
tab = objreg.get('tabbed-browser').tabopen(explicit=True)
|
|
||||||
tab = self._tabbed_browser().tabopen(explicit=True)
|
tab = self._tabbed_browser().tabopen(explicit=True)
|
||||||
tab.setHtml(highlighted, current_url)
|
tab.setHtml(highlighted, current_url)
|
||||||
tab.viewing_source = True
|
tab.viewing_source = True
|
||||||
|
Loading…
Reference in New Issue
Block a user