Skip to content

Commit

Permalink
Fix CSS more indentation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
alexprabhat99 authored and donho committed Jun 23, 2024
1 parent b3daf0a commit 73ad1ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PowerEditor/src/Notepad_plus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3640,7 +3640,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 - 2; i > 0 && i >= startPos; --i)
{
UCHAR aChar = (UCHAR)_pEditView->execute(SCI_GETCHARAT, i);
if (aChar != ' ' && aChar != '\t')
Expand Down

0 comments on commit 73ad1ef

Please sign in to comment.