ternjs / tern_for_sublime

Sublime Text package adding Tern support
MIT License
803 stars 54 forks source link

Fixes "global name 'p' is not defined" in get_pfile #6

Closed pahen closed 11 years ago

pahen commented 11 years ago

Traceback (most recent call last): File "./sublime_plugin.py", line 200, in on_selection_modified File "./sublime_plugin.py", line 154, in run_timed_function File "./sublime_plugin.py", line 199, in File "./tern.py", line 32, in on_selection_modified File "./tern.py", line 75, in get_pfile NameError: global name 'p' is not defined

This fix actually solved my problems with my RequireJS modules :)

marijnh commented 11 years ago

Thanks! Guess I didn't test the multiple-files-open case after making some major changes. Merged.