mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
HexEditor: Select first character by default
The first character was already selected (with the selection greyed-out), and a selection span of 1 was shown, so it's natural than the selection from/to numbers should be 0/0, not -1/-1.
This commit is contained in:
parent
b2a6d2cea4
commit
c7911fdce9
Notes:
sideshowbarker
2024-07-19 00:32:52 +09:00
Author: https://github.com/rok-povsic Commit: https://github.com/SerenityOS/serenity/commit/c7911fdce98 Pull-request: https://github.com/SerenityOS/serenity/pull/4568 Issue: https://github.com/SerenityOS/serenity/issues/3555
1 changed files with 2 additions and 2 deletions
|
@ -82,8 +82,8 @@ private:
|
|||
int m_bytes_per_row { 16 };
|
||||
ByteBuffer m_buffer;
|
||||
bool m_in_drag_select { false };
|
||||
int m_selection_start { -1 };
|
||||
int m_selection_end { -1 };
|
||||
int m_selection_start { 0 };
|
||||
int m_selection_end { 0 };
|
||||
HashMap<int, u8> m_tracked_changes;
|
||||
int m_position { 0 };
|
||||
int m_byte_position { 0 }; // 0 or 1
|
||||
|
|
Loading…
Add table
Reference in a new issue