Add ability to open/copy selected files from Search-results (2)

Restoring the ability of copying untitled document name.

ref: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15741#issuecomment-2481665911
This commit is contained in:
Don Ho 2024-11-18 16:52:26 +01:00
parent 467182602a
commit af2b90f0a5
1 changed files with 1 additions and 4 deletions

View File

@ -722,10 +722,7 @@ vector<wstring> Finder::getResultFilePaths(bool onlyInSelectedText) const
if (found)
{
wstring& path = (*_pMainFoundInfos)[line]._fullPath; // Get the path from the container
if (path.find('\\') != std::wstring::npos && std::find(paths.begin(), paths.end(), path) == paths.end()) // Contains a path separator and does not exist in the container
{
paths.push_back(path);
}
paths.push_back(path);
}
}