mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 22:18:19 +00:00
Always move cursor to end when selecting all text
This commit is contained in:
parent
a443d99ccf
commit
1be1c9780c
|
@ -140,7 +140,11 @@ public:
|
|||
bool HasSelection() const { return GetSelectionLength() > 0; }
|
||||
void SetSelection(size_t Start, size_t End);
|
||||
void SelectNothing() { SetSelection(GetCursorOffset(), GetCursorOffset()); }
|
||||
void SelectAll() { SetSelection(0, GetLength()); }
|
||||
void SelectAll()
|
||||
{
|
||||
SetCursorOffset(GetLength());
|
||||
SetSelection(0, GetLength());
|
||||
}
|
||||
|
||||
size_t OffsetFromActualToDisplay(size_t ActualOffset) const;
|
||||
size_t OffsetFromDisplayToActual(size_t DisplayOffset) const;
|
||||
|
|
Loading…
Reference in a new issue