marijnz / unity-shell

Write and execute code in an intuitive "shell" with autocompletion, for the Unity Editor.
MIT License
453 stars 29 forks source link

Cursor can reach invalid positions #1

Closed Tossrock closed 6 years ago

Tossrock commented 6 years ago

The text entry cursor can reach invalid positions pretty easily. Things that I've found triggering this:

marijnz commented 6 years ago

I put in basic prevention for this, which should cover most of the cases you're describing. Let me know if there's still something fix-worthy, otherwise feel free to close this Issue.

Commit: https://github.com/marijnz/unity-shell/commit/3bc817e5baf871d30643a4c5666810f754fb0b0d

Tossrock commented 6 years ago

Tried it out, seems solid! Thanks for fixing this, makes the shell much more usable :)