Fix regression of auto-Indent

The regression is introduced by 073f0bc8c6

Fix #9113, close #9114
This commit is contained in:
Vince 2020-11-06 14:05:57 -05:00 committed by Don HO
parent 776fa414ba
commit f91246e312

View File

@ -3054,7 +3054,7 @@ void Notepad_plus::maintainIndentation(TCHAR ch)
_pEditView->setLineIndent(curLine, indentAmountPrevLine);
}
// These languages do no support single line control structures without braces.
else if (type == L_PERL || type == L_RUST || L_POWERSHELL)
else if (type == L_PERL || type == L_RUST || type == L_POWERSHELL)
{
_pEditView->setLineIndent(curLine, indentAmountPrevLine);
}