Skip to content

Commit

Permalink
Fix copied paths repeated for "Copy Selected Pathname(s)" in Search r…
Browse files Browse the repository at this point in the history
  • Loading branch information
donho committed Nov 23, 2024
1 parent 09332d6 commit 7af3c10
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -719,14 +719,17 @@ vector<wstring> Finder::getResultFilePaths(bool onlyInSelectedText) const
if (line < len)
found = true; // Found it
}

if (found)
{
wstring& path = (*_pMainFoundInfos)[line]._fullPath; // Get the path from the container
paths.push_back(path);
wstring& path = (*_pMainFoundInfos)[line]._fullPath;
if (std::find(paths.begin(), paths.end(), path) == paths.end())
{
paths.push_back(path);
}
}
}


return paths;
}

Expand Down

0 comments on commit 7af3c10

Please sign in to comment.