diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp index eb7acdce7..f8ebc6f03 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp @@ -1465,7 +1465,8 @@ INT_PTR CALLBACK FindReplaceDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM case IDNORMAL: case IDEXTENDED: - case IDREGEXP : { + case IDREGEXP : + { if (isCheckedOrNot(IDREGEXP)) { _options._searchType = FindRegex; @@ -1503,15 +1504,16 @@ INT_PTR CALLBACK FindReplaceDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM enableFindDlgItem(IDWHOLEWORD, !isRegex); // regex upward search is disabled - BOOL doEnable = TRUE; + bool doEnable = true; if (isRegex && !nppParamInst.regexBackward4PowerUser()) { - doEnable = FALSE; + doEnable = false; } enableFindDlgItem(IDC_BACKWARDDIRECTION, doEnable); enableFindDlgItem(IDC_FINDPREV, doEnable); - return TRUE; } + return TRUE; + } case IDWRAP : findHistory._isWrap = _options._isWrapAround = isCheckedOrNot(IDWRAP);