-
-
Notifications
You must be signed in to change notification settings - Fork 21k
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
Out of bounds error on ctrl+d
with some multi line selections
#71217
Comments
cc @aXu-AP perhaps this is something that you've fixed (or are interested in fixing) |
Thanks for the heads up, I might look at it some point, but I'm gonna be busy for some time now. But I tested this and can confirm this happens. |
I'm on it. |
out of bounds
, on ctrl d
with some multi line selectionsctrl+d
with some multi line selections
Still happens in 4.3 with the current master, by the way. |
Godot version
v4.0.beta11.official [91713ce]
System information
Windows 10 22H2, Compatibility, GeForce GTX 550 Ti
Issue description
In the
Script Editor
.Sometimes when a selection spans multiple lines.
Pressing:
ctrl d
(which calls:ui_text_add_selection_for_next_occurrence
)Shows an error message in the
Output
panel:Steps to reproduce
Node2D.gd
Output
panel, near the bottom left of GodotScript Editor
, select from the end of the first line to the second line,either with the keyboard (
shift down
), or with the mousectrl d
Expected
A second cursor should be added on line 3,
and second selection should span from the end of line 2 to line 3.
| = a cursor,
[ = a selection start
] = a selection end
Before
Ctrl d
After
Ctrl d
The expected behavior is observed in
Visual Studio Code
,with the same code example, and shortcut:
ctrl d
Before
Ctrl d
After
Ctrl d
Observed
The Output panel shows the error message:
Selecting upwards from the second line to the end of the first, and pressing
ctrl d
,shows the error message:
No errors when selecting in one direction
At first, it seemed like it might be happening when a new line is included in the selection.
But there is no error when selecting upwards:
But there are errors when selecting in the other direction
Downwards:
Upwards:
Minimal reproduction project
issue, ctrl d, next occurrence.zip
The text was updated successfully, but these errors were encountered: