mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
HackStudio: Change the collection_index for highlight selected text
Change the value for `highlight_selected_text_span_collection_index` to avoid the conflict with `search_results_span_collection_index`. And pass the selection instead of calling selected_text() again
This commit is contained in:
parent
e63cf3b94a
commit
7d588db6c8
2 changed files with 2 additions and 2 deletions
|
@ -390,7 +390,7 @@ private:
|
|||
void on_search_results(GUI::TextRange current, Vector<GUI::TextRange> all_results);
|
||||
|
||||
static constexpr auto search_results_span_collection_index = 1;
|
||||
static constexpr auto highlight_selected_text_span_collection_index = 1;
|
||||
static constexpr auto highlight_selected_text_span_collection_index = 2;
|
||||
|
||||
Type m_type { MultiLine };
|
||||
Mode m_mode { Editable };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue