mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
HexEditor: Clear tracked changes when setting a new buffer
This commit is contained in:
parent
97878dfb4d
commit
ca4d4cac45
Notes:
sideshowbarker
2024-07-19 09:13:37 +09:00
Author: https://github.com/xTibor
Commit: ca4d4cac45
Pull-request: https://github.com/SerenityOS/serenity/pull/1244
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ void HexEditor::set_buffer(const ByteBuffer& buffer)
|
|||
{
|
||||
m_buffer = buffer;
|
||||
set_content_length(buffer.size());
|
||||
m_tracked_changes.clear();
|
||||
m_position = 0;
|
||||
m_byte_position = 0;
|
||||
update();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue