mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:47:35 +00:00
HexEditor: Clear tracked changes when setting a new buffer
This commit is contained in:
parent
97878dfb4d
commit
ca4d4cac45
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ void HexEditor::set_buffer(const ByteBuffer& buffer)
|
||||||
{
|
{
|
||||||
m_buffer = buffer;
|
m_buffer = buffer;
|
||||||
set_content_length(buffer.size());
|
set_content_length(buffer.size());
|
||||||
|
m_tracked_changes.clear();
|
||||||
m_position = 0;
|
m_position = 0;
|
||||||
m_byte_position = 0;
|
m_byte_position = 0;
|
||||||
update();
|
update();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue