Fix CSS more indentation bug

Fix #14962, close #14968
pull/15347/head
Alex Prabhat Bara 2024-04-10 22:48:22 +05:30 committed by Don Ho
parent b3daf0a982
commit 73ad1efc47
1 changed files with 1 additions and 1 deletions

View File

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