1. Alexey Rakeev
  2. hg4subl


Thejesh GN  committed 08c4801 Draft Merge

fix to unknown errors

  • Participants
  • Parent commits 6b177ac, 8ef50c6
  • Branches default

Comments (0)

Files changed (1)

File hg.py

View file
 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):