karthikram/Rtools — pull request #5 by wch (2012-04-08 19:11:22+00:00)
Title: Fix unbound 'lang' error

When no text is selected and you press cmd-Enter, it gives this error:

```
Traceback (most recent call last):
File "./sublime_plugin.py", line 350, in run_
File "./Rtools.py", line 46, in run
UnboundLocalError: local variable 'lang' referenced before assignment
```

This pull request changes the logic so that it doesn't give that error anymore; it quits if there's no text.