mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Rename 'DeleteFromCursor' -> 'DeleteUntilCursor'
This commit is contained in:
parent
ed8a0b5eee
commit
b98b71df88
|
@ -151,7 +151,7 @@ void CGameConsole::CInstance::OnInput(IInput::CEvent Event)
|
|||
}
|
||||
else if(m_pGameConsole->Input()->KeyIsPressed(KEY_LCTRL) && m_pGameConsole->Input()->KeyPress(KEY_U))
|
||||
{
|
||||
m_Input.DeleteFromCursor();
|
||||
m_Input.DeleteUntilCursor();
|
||||
Handled = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -142,7 +142,7 @@ bool CLineInput::Manipulate(IInput::CEvent Event, char *pStr, int StrMaxSize, in
|
|||
return Changes;
|
||||
}
|
||||
|
||||
void CLineInput::DeleteFromCursor()
|
||||
void CLineInput::DeleteUntilCursor()
|
||||
{
|
||||
char aBuf[MAX_SIZE];
|
||||
str_copy(aBuf, &m_Str[m_CursorPos], sizeof(aBuf));
|
||||
|
|
|
@ -41,7 +41,7 @@ public:
|
|||
int GetLength(bool Editing = false) const { return Editing ? m_FakeLen : m_Len; }
|
||||
int GetCursorOffset(bool Editing = false) const { return Editing ? m_FakeCursorPos : m_CursorPos; }
|
||||
void SetCursorOffset(int Offset) { m_CursorPos = Offset > m_Len ? m_Len : Offset < 0 ? 0 : Offset; }
|
||||
void DeleteFromCursor();
|
||||
void DeleteUntilCursor();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue