Make retro-compatible to 7.8.4 and older versions for recorded macro

In the following commit (521ff86665) IDC_FINDNEXT & IDC_FINDPREV are removed from macro record and play. This change broke old macro playing if IDC_FINDNEXT or IDC_FINDPREV was recorded in the macro:
https://community.notepad-plus-plus.org/topic/19011/notepad-v7-8-5-released

Adding IDC_FINDNEXT or IDC_FINDPREV & making them treated as IDOK make fix this broken issue.
This commit is contained in:
Don HO 2020-03-17 02:52:00 +01:00
parent 2f9f395eff
commit 3ca82bebf1
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

View File

@ -2660,6 +2660,8 @@ void FindReplaceDlg::execSavedCommand(int cmd, uptr_t intValue, const generic_st
NppParameters& nppParamInst = NppParameters::getInstance(); NppParameters& nppParamInst = NppParameters::getInstance();
switch (intValue) switch (intValue)
{ {
case IDC_FINDNEXT: // retro-compatible to 7.8.4 and older versions
case IDC_FINDPREV: // retro-compatible to 7.8.4 and older versions
case IDOK: case IDOK:
nppParamInst._isFindReplacing = true; nppParamInst._isFindReplacing = true;
processFindNext(_env->_str2Search.c_str()); processFindNext(_env->_str2Search.c_str());