mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09: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
Notes:
sideshowbarker
2024-07-16 23:08:48 +09:00
Author: https://github.com/asan-sanitizer
Commit: 7d588db6c8
Pull-request: https://github.com/SerenityOS/serenity/pull/20503
Reviewed-by: https://github.com/AtkinsSJ ✅
2 changed files with 2 additions and 2 deletions
|
@ -308,7 +308,7 @@ void TextEditor::doubleclick_event(MouseEvent& event)
|
|||
|
||||
auto selection = selected_text();
|
||||
if (!selection.is_whitespace())
|
||||
highlight_all_occurances_of(selected_text());
|
||||
highlight_all_occurances_of(selection);
|
||||
|
||||
set_cursor(m_selection.end());
|
||||
update();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue