Commit e0c6122a authored by Christian Hergert's avatar Christian Hergert
Browse files

html-preview: fix invalid use of view

parent 90d135d6
......@@ -256,7 +256,8 @@ class HtmlPreviewAddin(GObject.Object, Ide.EditorViewAddin):
def preview_activated(self, *args):
global can_preview_rst
if self.view is None:
view = self.view
if view is None:
if self.lang_id == 'rst':
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment