Commits

Thejesh GN  committed 3734805 Draft

fixed window null error

  • Participants
  • Parent commits 08c4801
  • Tags v.0.5

Comments (0)

Files changed (1)

 class HgTextCommand(HgCommand, sublime_plugin.TextCommand):
     def __init__(self, view):
         sublime_plugin.TextCommand.__init__(self, view)
-        self.window = self.view.window()
+        if self.view.window():
+            self.window = self.view.window()
 
     def is_enabled(self):
         # First, is this actually a file on the file system?