BasicPawn icon indicating copy to clipboard operation
BasicPawn copied to clipboard

Up/Down cursor navigation moves to strange position

Open dragokas opened this issue 4 years ago • 6 comments
trafficstars

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.

uojeR6Jbr5 l4d_multi_witches.zip

dragokas avatar Sep 15 '21 05:09 dragokas

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? 2021-09-15_14-05-15

Timocop avatar Sep 15 '21 12:09 Timocop

Try to set cursor next to "=" similar to my video. I'm using 125% DPI.

dragokas avatar Sep 15 '21 13:09 dragokas

Works fine here. Ill try with higher DPI next time. 2021-09-15_18-45-14

Timocop avatar Sep 15 '21 16:09 Timocop

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.

dragokas avatar Sep 15 '21 17:09 dragokas

Followed your steps, it's still working fine here.

Timocop avatar Sep 16 '21 17:09 Timocop

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.

e3APZTDZXs

dragokas avatar Sep 16 '21 18:09 dragokas