mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +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:
parent
7bf4ed98d7
commit
a562518ad7
Notes:
sideshowbarker
2024-07-19 17:07:23 +09:00
Author: https://github.com/samu698
Commit: a562518ad7
Pull-request: https://github.com/SerenityOS/serenity/pull/13031
1 changed files with 1 additions and 2 deletions
|
@ -93,9 +93,8 @@ void HexEditor::fill_selection(u8 fill_byte)
|
||||||
if (!has_selection())
|
if (!has_selection())
|
||||||
return;
|
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);
|
m_document->set(i, fill_byte);
|
||||||
}
|
|
||||||
|
|
||||||
update();
|
update();
|
||||||
did_change();
|
did_change();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue