Fix un uncomment undo regression

Ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12830#issuecomment-1399538801

Fix #12830
This commit is contained in:
Don Ho 2023-01-22 18:31:28 +01:00
parent eabf5d76c5
commit 01661acbaa
1 changed files with 3 additions and 1 deletions

View File

@ -8354,7 +8354,10 @@ bool Notepad_plus::undoStreamComment(bool tryBlockComment)
}
//-- Finally, if there is no stream-comment, return
else
{
_pEditView->execute(SCI_ENDUNDOACTION);
return retVal;
}
}
//-- Ok, there are valid start-comment and valid end-comment around the caret-position.
@ -8421,7 +8424,6 @@ bool Notepad_plus::undoStreamComment(bool tryBlockComment)
}
while (1); //do as long as stream-comments are within selection
_pEditView->execute(SCI_ENDUNDOACTION);
}
void Notepad_plus::monitoringStartOrStopAndUpdateUI(Buffer* pBuf, bool isStarting)