Rename 'DeleteFromCursor' -> 'DeleteUntilCursor'

This commit is contained in:
ChillerDragon 2019-06-01 17:41:40 +02:00
parent ed8a0b5eee
commit b98b71df88
3 changed files with 3 additions and 3 deletions

View file

@ -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;
}

View file

@ -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));

View file

@ -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