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 c5dd534 commit 6e20a54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def on_modified(self):
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 current_line < 2:
if not "source.java" in scope or len(current_line) < 2:
return


Expand Down

0 comments on commit 6e20a54

Please sign in to comment.