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:
parent
eabf5d76c5
commit
01661acbaa
|
@ -8354,8 +8354,11 @@ bool Notepad_plus::undoStreamComment(bool tryBlockComment)
|
||||||
}
|
}
|
||||||
//-- Finally, if there is no stream-comment, return
|
//-- Finally, if there is no stream-comment, return
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
_pEditView->execute(SCI_ENDUNDOACTION);
|
||||||
return retVal;
|
return retVal;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//-- Ok, there are valid start-comment and valid end-comment around the caret-position.
|
//-- Ok, there are valid start-comment and valid end-comment around the caret-position.
|
||||||
// Now, un-comment stream-comment:
|
// Now, un-comment stream-comment:
|
||||||
|
@ -8421,7 +8424,6 @@ bool Notepad_plus::undoStreamComment(bool tryBlockComment)
|
||||||
}
|
}
|
||||||
while (1); //do as long as stream-comments are within selection
|
while (1); //do as long as stream-comments are within selection
|
||||||
|
|
||||||
_pEditView->execute(SCI_ENDUNDOACTION);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Notepad_plus::monitoringStartOrStopAndUpdateUI(Buffer* pBuf, bool isStarting)
|
void Notepad_plus::monitoringStartOrStopAndUpdateUI(Buffer* pBuf, bool isStarting)
|
||||||
|
|
Loading…
Reference in New Issue