acarril / StataLinux

Sublime Text 3 plugin that adds support for Stata (all versions) in Linux.
MIT License
7 stars 2 forks source link

Add \n character before sending to tempfile.do #14

Closed chezlag closed 4 years ago

chezlag commented 4 years ago

Adding the newline character ensures tempfile.do runs, even when there's only one line sent to the file.

I was having an issue where I couldn't send the line I had my cursor on without fully selecting it. Even then it would fail to run sometimes. I'm guessing it's because Stata requires an end-of-line character to actually run the line (which didn't exist when there's only one line selected). This seems to have fixed it for me.

acarril commented 4 years ago

Good catch, thanks!