Fix the regression of copying line data from search results

Fix #9334
This commit is contained in:
Don HO 2021-01-02 12:21:47 +01:00
parent 3373756afb
commit edfd2b8a95
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E
1 changed files with 3 additions and 2 deletions

View File

@ -3619,8 +3619,9 @@ void Finder::wrapLongLinesToggle()
bool Finder::isLineActualSearchResult(const generic_string & s) const
{
const auto firstColon = s.find(TEXT("\tLine "));
return (firstColon == 0);
// actual-search-result lines are the only type that start with a tab character
// sample: "\tLine 123: xxxxxxHITxxxxxx"
return (s.find(TEXT("\t")) == 0);
}
generic_string & Finder::prepareStringForClipboard(generic_string & s) const