mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
parent
dd87b14f52
commit
71de5433f8
Notes:
sideshowbarker
2024-07-18 21:57:56 +09:00
Author: https://github.com/alimpfard
Commit: 71de5433f8
Pull-request: https://github.com/SerenityOS/serenity/pull/5492
Issue: https://github.com/SerenityOS/serenity/issues/5465
1 changed files with 2 additions and 0 deletions
|
@ -1095,6 +1095,8 @@ bool Editor::search(const StringView& phrase, bool allow_empty, bool from_beginn
|
|||
}
|
||||
|
||||
if (found) {
|
||||
// We plan to clear the buffer, so mark the entire thing touched.
|
||||
m_chars_touched_in_the_middle = m_buffer.size();
|
||||
m_buffer.clear();
|
||||
m_cursor = 0;
|
||||
insert(m_history[last_matching_offset].entry);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue