godot icon indicating copy to clipboard operation
godot copied to clipboard

Select next ocurrence when value is inside a collapsed function

Open christianmateus opened this issue 1 year ago • 1 comments
trafficstars

Tested versions

  • Reproducible in v4.2.1.stable.official [b09f793f5], v4.3.dev2.official [352434668]

System information

Godot v4.2.1.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated AMD Radeon RX 6600 XT (Advanced Micro Devices, Inc.; 27.20.22016.2) - Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz (24 Threads)

Issue description

Trying to select the next ocurrence of anything in the code editor, while it's inside a collapsed function, returns an error:

image

I believe it should expand the function, then select the ocurrence.

Steps to reproduce

Select a word and press Ctrl + D to find and select the next ocurrence of it. A function must contain the word, and it must be collapsed.

Minimal reproduction project (MRP)

Select_next_Ocurrence.zip

christianmateus avatar Jan 17 '24 19:01 christianmateus

This should be easy to fix after #86978 since it adds a _unhide_carets() method in TextEdit that can probably be used for this.

kitbdev avatar Apr 04 '24 00:04 kitbdev