mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
HexEditor: Call size() instead of operator bool()
This previously called operator bool by accident.
This commit is contained in:
parent
4b5dbc15df
commit
24ca645f08
1 changed files with 1 additions and 1 deletions
|
@ -575,7 +575,7 @@ int HexEditor::find_and_highlight(ByteBuffer& needle, int start)
|
|||
int relative_offset = static_cast<const u8*>(raw_offset) - m_buffer.data();
|
||||
dbgln("find_and_highlight: start={} raw_offset={} relative_offset={}", start, raw_offset, relative_offset);
|
||||
|
||||
auto end_of_match = relative_offset + needle;
|
||||
auto end_of_match = relative_offset + needle.size();
|
||||
set_position(relative_offset);
|
||||
m_selection_start = relative_offset;
|
||||
m_selection_end = end_of_match;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue