1
0
mirror of synced 2024-11-14 19:17:42 +01:00

ui: Fixed cursor being positioned weirdly when deleting a tab in the source editor

This commit is contained in:
WerWolv 2021-10-19 12:48:44 +02:00
parent 1b66c84303
commit 58e3031510

View File

@ -1872,7 +1872,7 @@ void TextEditor::Backspace()
u.mRemovedStart = u.mRemovedEnd = GetActualCursorCoordinates();
--u.mRemovedStart.mColumn;
--mState.mCursorPosition.mColumn;
mState.mCursorPosition.mColumn = GetCharacterColumn(mState.mCursorPosition.mLine, cindex);
while (cindex < line.size() && cend-- > cindex)
{