Skip to content

Commit

Permalink
fixed undefined 'prefix' variable'
Browse files Browse the repository at this point in the history
  • Loading branch information
tushortz committed Dec 20, 2018
1 parent 6e20a54 commit f73dba5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ def on_modified(self):

def on_hover(self, point, hover_zone):
scope = self.view.scope_name(0)
current_line = self.view.substr(self.view.line(self.view.sel()[0]))

if not "source.java" in scope or len(prefix) < 2:
if not "source.java" in scope or len(current_line) < 2:
return

current_line = self.view.substr(self.view.line(self.view.sel()[0]))

if "import " in current_line and len(current_line) > 7:
self.view.window().status_message("Searching for doc ...")
Expand Down

0 comments on commit f73dba5

Please sign in to comment.