From c7911fdce9832b045d38738a7d968eb9b1ebdf54 Mon Sep 17 00:00:00 2001 From: Rok Povsic Date: Sun, 27 Dec 2020 09:48:26 +0100 Subject: [PATCH] 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. --- Applications/HexEditor/HexEditor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Applications/HexEditor/HexEditor.h b/Applications/HexEditor/HexEditor.h index 0fd0d169e3..e47eedeec3 100644 --- a/Applications/HexEditor/HexEditor.h +++ b/Applications/HexEditor/HexEditor.h @@ -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 m_tracked_changes; int m_position { 0 }; int m_byte_position { 0 }; // 0 or 1