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

Inconsistent editor movement near arithmetic operators #92981

Open
1xhitt opened this issue Jun 10, 2024 · 6 comments · May be fixed by #93870
Open

Inconsistent editor movement near arithmetic operators #92981

1xhitt opened this issue Jun 10, 2024 · 6 comments · May be fixed by #93870

Comments

@1xhitt
Copy link

1xhitt commented Jun 10, 2024

Tested versions

Godot Engine v4.2.1.stable.official.b09f793f5

System information

Linux (Pop!_OS 22.04 LTS)

Issue description

Ctrl + left/right moves cursor inconsistently. It skips some operators and stops at others. This is particularly annoying with + and - operators.

Steps to reproduce

Example code

	num1 = num0 + c1 
	num1 = num0 - c1

Setting the cursor in the line 1 and pressing ctrl + left twice will put it before +. Doing so with the line 2 will put the cursor before num0.

Minimal reproduction project (MRP)

	#moves to the operator
	num1 = num0 + c1
	num1 = num0 ^ c1
	num1 = num0 > c1
	num1 = num0 >= c1
	num1 = num0 <= c1
	num1 = num0 < c1
	num1 = num0 == c1
	num1 = num0 << c1
	num1 = num0 >> c1
	num1 = num0 | c1
	
	# moves to the center of `!=` 
	num1 = num0 != c1
	
	# moves to `num0`
	num1 = num0 - c1
	num1 = num0 & c1
	num1 = num0 * c1
	num1 = num0 ** c1
	num1 = num0 / c1
	num1 = num0 % c1
	num1 = num0 % c1
	num1 = num0 % c1
@AThousandShips
Copy link
Member

Please try with 4.2.2 to make sure this still occurs and hasn't been fixed already

@1xhitt
Copy link
Author

1xhitt commented Jun 10, 2024

Behavior does not change in Godot Engine v4.2.2.stable.official.15073afe3

@jimmylynch
Copy link

I would like to be assigned to this issue.

@AThousandShips
Copy link
Member

We don't assign people to issues, and the first step would be to identify what's going on and to decide what to do, so if you want to investigate that that'd be great! And report your findings here

@kitbdev
Copy link
Contributor

kitbdev commented Jun 10, 2024

@kitbdev
Copy link
Contributor

kitbdev commented Jun 30, 2024

However, the caret skips the operator and goes to num0 in the example, when it should stop after the operator. This also affects word delete and word backspace.

@kitbdev kitbdev linked a pull request Jul 2, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants