1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +00:00

HexEditor: Clear tracked changes when setting a new buffer

This commit is contained in:
Tibor Nagy 2020-02-19 08:58:39 +01:00 committed by Andreas Kling
parent 97878dfb4d
commit ca4d4cac45

View file

@ -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();