Skip to content

Commit

Permalink
checks the current scope at cursor instead of beginning of file
Browse files Browse the repository at this point in the history
  • Loading branch information
subhaze committed Apr 29, 2013
1 parent 461ac2f commit 1b63ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tern.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
is_st2 = int(sublime.version()) < 3000

def is_js_file(view):
return view.score_selector(0, "source.js") > 0
return view.score_selector(view.sel()[0].b, "source.js") > 0

files = {}
arghints_enabled = False
Expand Down

0 comments on commit 1b63ebb

Please sign in to comment.