BasicPawn
BasicPawn copied to clipboard
Up/Down cursor navigation moves to strange position
In the example video below I set cursor position via mouse in line # 78 next to sign "=", then I press Down key => result: cursor gets a position a little bit to the right instead of been strongly down (so, the physical X coordinate is not preserved).
I understand this can be somehow related to TABs, however, even if it is a case there is still inconsistency:
Meanwhile, if I set cursor position in line # 79 a little bit to the left of sign "=", then I press Up key, and Down key => result: cursor get a position strongly under the previous one, so for some reason in such case X coordinate is preserved.
This is very inconvenient. Physical X coordinate should be always preserved, even whether code contains TAB or not, and so on.
P.S. Perhaps, One rule should be as an exception: when cursor is located at the end of the line, when you press Up or Down it should also move to the end of the next next, not strongly vertically.
I can't reproduce this right now, it works fine on my end. Ill look into it. Are you using a higher font DPI in windows?

Try to set cursor next to "=" similar to my video. I'm using 125% DPI.
Works fine here. Ill try with higher DPI next time.

Strange, also can't reproduce, until I did the following:
- duplicate line # 78 by doing such steps: set cursor at the beginning of "g_hCvarWitchTimeMax", press Shift + End, Ctrl + Insert, End, ENTER, Shift + Insert, Home, Set cursor next to sign "=", press Down.
Followed your steps, it's still working fine here.
Well, I installed fresh Win10 with all updates and VMWare, also I have 100 DPI.. Copied there 2 versions of BasicPawn - Pre-built, and built on my own with latest release. Both have the same effect. I noticed it is related to "Home" button. If I don't press it, bug is not reproduced.
