Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
alexprabhat99 committed Apr 10, 2024
1 parent ddc0807 commit 3ff1642
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PowerEditor/src/Notepad_plus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3609,7 +3609,7 @@ void Notepad_plus::maintainIndentation(TCHAR ch)
auto startPos = _pEditView->execute(SCI_POSITIONFROMLINE, curLine);
LRESULT endPos = _pEditView->execute(SCI_GETCURRENTPOS);

for (LRESULT i = endPos - 2; i > 0 && i > startPos; --i)
for (LRESULT i = endPos - 1; i > 0 && i > startPos; --i)
{
UCHAR aChar = (UCHAR)_pEditView->execute(SCI_GETCHARAT, i);
if (aChar != ' ' && aChar != '\t')
Expand Down Expand Up @@ -8864,4 +8864,4 @@ void Notepad_plus::changedHistoryGoTo(int idGoTo)
if (!isSilent)
::MessageBeep(MB_ICONEXCLAMATION);
}
}
}

0 comments on commit 3ff1642

Please sign in to comment.