Skip to content

Commit

Permalink
Fix for issue #1.
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmareaver committed Apr 5, 2022
1 parent a3ddd98 commit bde579c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion TextEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1872,7 +1872,10 @@ void TextEditor::Backspace()

u.mRemovedStart = u.mRemovedEnd = GetActualCursorCoordinates();
--u.mRemovedStart.mColumn;
--mState.mCursorPosition.mColumn;
if (line[cindex].mChar == '\t')
mState.mCursorPosition.mColumn -= 4;
else
--mState.mCursorPosition.mColumn;

while (cindex < line.size() && cend-- > cindex)
{
Expand Down

0 comments on commit bde579c

Please sign in to comment.