Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Up/Down cursor navigation moves to strange position #118

Open
dragokas opened this issue Sep 15, 2021 · 6 comments
Open

Up/Down cursor navigation moves to strange position #118

dragokas opened this issue Sep 15, 2021 · 6 comments

Comments

@dragokas
Copy link
Contributor

dragokas commented Sep 15, 2021

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

@Timocop
Copy link
Owner

Timocop commented Sep 15, 2021

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

@dragokas
Copy link
Contributor Author

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

@Timocop
Copy link
Owner

Timocop commented Sep 15, 2021

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

@dragokas
Copy link
Contributor Author

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.

@Timocop
Copy link
Owner

Timocop commented Sep 16, 2021

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

@dragokas
Copy link
Contributor Author

dragokas commented Sep 16, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants