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: https://github.com/SerenityOS/serenity/commit/ca4d4cac45e 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
Reference in a new issue