From 3ca82bebf1230a56d91c0fc5ca3a53befb853ffa Mon Sep 17 00:00:00 2001 From: Don HO Date: Tue, 17 Mar 2020 02:52:00 +0100 Subject: [PATCH] Make retro-compatible to 7.8.4 and older versions for recorded macro In the following commit (https://github.com/notepad-plus-plus/notepad-plus-plus/commit/521ff866653fa709ea6d5d41e1e3f7466db10b4e) 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. --- PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp index 780702ce..f3cd2a50 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp @@ -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());