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

Search matches are not highlighted when opening search with a selection #82706

Closed
BrianMacIntosh opened this issue Oct 3, 2023 · 0 comments · Fixed by #82707
Closed

Search matches are not highlighted when opening search with a selection #82706

BrianMacIntosh opened this issue Oct 3, 2023 · 0 comments · Fixed by #82707

Comments

@BrianMacIntosh
Copy link
Contributor

Godot version

v4.1.1.stable.official [bd6af8e]

System information

Godot v4.1.1.stable - Windows 10.0.22621 - Vulkan (Compatibility) - AMD Radeon RX 5700 XT (Advanced Micro Devices, Inc.; 31.0.12027.9001) - Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz (6 Threads)

Issue description

In the code editor, when the search bar is up, search matches in the current document are normally highlighted. However, if the bar is opened by pressing Ctrl+F with a selection, the search bar is populated with the selection, but no highlighting occurs until the user goes to the next result or changes the search query.

Steps to reproduce

  1. Create a script file and paste the follow in it:
extends Node

func _ready() -> void:
	var arr : Array = [1, 2, 3, 4]
	print(arr)
	print(arr)
  1. Double-click any occurrence of arr to select it.
  2. Press Ctrl+F

Minimal reproduction project

N/A

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.

2 participants