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:
parent
2f9f395eff
commit
3ca82bebf1
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user