Cursor position desync of Switch
Closed this issue · 3 comments
I have this problem even for simple small files with 5 lines. Unless you want to edit line 1,2 or 3 in your file, the cursor will be shifted so much it will be very hard to tell which line you are editing.
problem is with line wrapping– I haven't had time to address this in a satisfying way, since I'm using the built-in SDL line wrapping to render the entire blob of text all at once. I think a good fix would re-render every line individually, and increase offsets if I detect that a previous line has wrapped.
as always the project is open to contribution, but many devs don't seem to be that interested. For simple non-wrapping files it's better than nothing and I've used it many times for this purpose
It's been a while, but the 2.0 release has a lot of improvements in this area! It can now handle larger files with line wrapping, and accurately positions the cursor.
New release changelog: https://github.com/vgmoose/vgedit/releases