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 and Broken Skipping Cursor in Editor - Godot 4.3 Beta 2 Custom #93618

Closed
mirage3d opened this issue Jun 26, 2024 · 2 comments · Fixed by #93656
Closed

Inconsistent and Broken Skipping Cursor in Editor - Godot 4.3 Beta 2 Custom #93618

mirage3d opened this issue Jun 26, 2024 · 2 comments · Fixed by #93656

Comments

@mirage3d
Copy link

mirage3d commented Jun 26, 2024

Tested versions

  • Reproducible in v4.3.beta.custom_build [6b281c0]
  • I have not tested this issue in prior versions, but I don't remember this behavior in Beta 1 or any previous version of Godot
  • Custom build is for the double-precision flag

System information

Godot v4.3.beta (6b281c0) - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3050 Ti Laptop GPU (NVIDIA; 31.0.15.3598) - AMD Ryzen 7 5800H with Radeon Graphics (16 Threads)

Issue description

The built-in GDScript editor's cursor behaves unexpectedly, inconsistently, and incorrectly, compared to previous versions and editor norms.

Clicking Ctrl-Left and Ctrl-Right makes the cursor skip several tokens at once. Not all code lines suffer from this, and this only happens in "code" lines and not inside comments as far as I can tell.

Steps to reproduce

  • Create or open an existing script
  • Navigate to lines that contain code
  • Click Ctrl-arrow keys and watch the cursor erratically; Sometimes skipping 1 token and at other times skipping several tokens at once.

You can use this as an example line:

expect(red.has_method("deactivate")).to.be.truthy("Some generic description of the test")
	red.deactivate()

Positioning the cursor at the start of the expect token then Ctrl-Right Arrow clicking shifts the cursor to the end of the word "Some skipping all the tokens and spaces in between.

Minimal reproduction project (MRP)

editor-skip-tokens-bug.zip

@Calinou
Copy link
Member

Calinou commented Jun 26, 2024

This may be a regression from #92514.

cc @vgezer

@vgezer
Copy link
Contributor

vgezer commented Jun 27, 2024

Yes, indeed. Added a quick fix for it. Appearently DEFAULT PUNCTUATION BLOCK does not contain the basic punctuation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Very Bad
Development

Successfully merging a pull request may close this issue.

4 participants