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.
pull/8059/head
Don HO 5 years ago
parent 2f9f395eff
commit 3ca82bebf1
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

@ -2660,6 +2660,8 @@ void FindReplaceDlg::execSavedCommand(int cmd, uptr_t intValue, const generic_st
NppParameters& nppParamInst = NppParameters::getInstance();
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:
nppParamInst._isFindReplacing = true;
processFindNext(_env->_str2Search.c_str());

Loading…
Cancel
Save