Search terms are now highlighted when the bar opens with a selection.

This is achieved by triggering a search when the bar opens. This is slightly inefficient but cleanly updates everything that's dependent on the search and reduces code duplication.
This commit is contained in:
Brian MacIntosh
2023-10-02 18:44:54 -07:00
parent dcbee437f7
commit 0d7db935aa
2 changed files with 22 additions and 30 deletions
+2
View File
@@ -110,6 +110,8 @@ protected:
virtual void unhandled_input(const Ref<InputEvent> &p_event) override;
void _focus_lost();
void _update_flags(bool p_direction_backwards);
bool _search(uint32_t p_flags, int p_from_line, int p_from_col);
void _replace();