diff --git a/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp index 00352fae4..e2ac64894 100644 --- a/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp @@ -2300,7 +2300,6 @@ int FindReplaceDlg::processAll(ProcessOperation op, const FindOption *opt, bool enableFindDlgItem(IDC_IN_SELECTION_CHECK, false); } } - return nbProcessed; } @@ -2462,7 +2461,6 @@ int FindReplaceDlg::processRange(ProcessOperation op, FindReplaceInfo & findRepl srm._start = static_cast(start_mark); srm._end = static_cast(end_mark); _pFinder->add(FoundInfo(targetStart, targetEnd, lineNumber + 1, pFileName), srm, line.c_str(), totalLineNumber); - break; } @@ -2710,7 +2708,6 @@ void FindReplaceDlg::findAllIn(InWhat op) justCreated = true; } _pFinder->setFinderStyle(); - if (_pFinder->_purgeBeforeEverySearch) { _pFinder->removeAll(); @@ -2742,7 +2739,6 @@ void FindReplaceDlg::findAllIn(InWhat op) if (!cmdid) return; bool limitSearchScopeToSelection = op == CURR_DOC_SELECTION; - if (::SendMessage(_hParent, cmdid, static_cast(limitSearchScopeToSelection ? 1 : 0), 0)) { generic_string text = _pFinder->getHitsString(_findAllResult); @@ -4274,7 +4270,8 @@ void Finder::beginNewFilesSearch() _nbFoundFiles = 0; // fold all old searches (1st level only) - _scintView.collapse(searchHeaderLevel - SC_FOLDLEVELBASE, fold_collapse); + // 2022/06/18: Due to performance issue on Scintilla 5.x, the following line is commented: + //_scintView.collapse(searchHeaderLevel - SC_FOLDLEVELBASE, fold_collapse); } void Finder::finishFilesSearch(int count, int searchedCount, bool isMatchLines, bool searchedEntireNotSelection)