1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 03:18:11 +00:00

HexEditor: Fill selection sets only bytes inside selection

Before this patch the fill selection command would set the selection
and one byte after it
This commit is contained in:
Samu698 2022-03-13 18:40:19 +01:00 committed by Andreas Kling
parent 7bf4ed98d7
commit a562518ad7

View file

@ -93,9 +93,8 @@ void HexEditor::fill_selection(u8 fill_byte)
if (!has_selection())
return;
for (size_t i = m_selection_start; i <= m_selection_end; i++) {
for (size_t i = m_selection_start; i < m_selection_end; i++)
m_document->set(i, fill_byte);
}
update();
did_change();