|
|
|
@ -2531,9 +2531,9 @@ void Notepad_plus::maintainIndentation(TCHAR ch)
|
|
|
|
|
{
|
|
|
|
|
// if no character in front of {, aligned with prev line's indentation
|
|
|
|
|
auto startPos = _pEditView->execute(SCI_POSITIONFROMLINE, curLine);
|
|
|
|
|
auto endPos = _pEditView->execute(SCI_GETCURRENTPOS);
|
|
|
|
|
LRESULT endPos = _pEditView->execute(SCI_GETCURRENTPOS);
|
|
|
|
|
|
|
|
|
|
for (long long 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')
|
|
|
|
|