diff --git a/src/game/client/lineinput.h b/src/game/client/lineinput.h index 824fd1c18..789be97f7 100644 --- a/src/game/client/lineinput.h +++ b/src/game/client/lineinput.h @@ -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;