mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-25 23:05:13 +02:00
parent
b3daf0a982
commit
73ad1efc47
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user