randy3k / RemoteSubl

Use rmate with Sublime Text, an improved fork of rsub.
327 stars 20 forks source link

Files containing line with string 'open' crashes #26

Closed ghost closed 3 years ago

ghost commented 3 years ago

The keyword 'open' is used to initialize the transfer of a file. A file can be initialized and then initialized when another instance of 'open' is encountered within the same file, causing it to not open in Sublime-Text 3. This issue can be easily recreated by adding the string 'open' (with no other characters) on a single line in a given file.

This change adds a check to make sure that the file was not already parsing data, solving this issue.

randy3k commented 3 years ago

Thanks. Can't believe that this bug has been sitting here for years.