It looks like CPO is grabbing the first line, then dropping 11 characters (just enough for use context), then putting the remaining text in the INPUT box.
I know legacy files aren't super common, but it might be worth inserting a check to ensure the line starts with use context
If you select "choose context", a dialog box appears with what CPO thinks is the existing context in an INPUT box.
But if you open an older pyret file without a context, weird things happen:![image](https://github.com/brownplt/code.pyret.org/assets/77126/206ff4b7-260b-45da-9f36-fa4f18ad6986)
It looks like CPO is grabbing the first line, then dropping 11 characters (just enough for
use context
), then putting the remaining text in the INPUT box.I know legacy files aren't super common, but it might be worth inserting a check to ensure the line starts with
use context