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 #27

Closed ghost closed 3 years ago

ghost commented 3 years ago

From what I understand, rmate uses regular characters in the format of keywords separated by colons to specify options over a socket connection. At some point, the 'data:' keyword is encountered and everything after that should just be file data.

I found that if a file contains the string 'open' on its own line with no other characters, that breaks the plugin and the file never opens on the remote instance of Sublime. The plugin continues treating the word 'open' as a special parameter even after data parsing had already started.

The fix is very easy, just check to see if data is already parsing before looking for the 'open' keyword, see #26

randy3k commented 3 years ago

thank for the report,