Alexey Rakeev committed 8ef50c6 Draft

Fixed set up of HgCommand.window property

Comments (0)

Files changed (1)

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