ide: clang related fixes, find in files now trims long lines when putting them to output display array to avoid slowdowns

git-svn-id: svn://ultimatepp.org/upp/trunk@14115 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-03-02 13:34:24 +00:00
parent 39355c2646
commit 5941dfdae3
7 changed files with 123 additions and 100 deletions

View file

@ -121,7 +121,7 @@ void Ide::AddFoundFile(const String& fn, int ln, const String& line, int pos, in
f.len = count;
f.kind = 0;
f.message = "\1" + EditorSyntax::GetSyntaxForFilename(fn) + "\1" +
AsString(pos) + "\1" + AsString(count) + "\1" + line;
AsString(pos) + "\1" + AsString(count) + "\1" + (line.GetCount() > 300 ? line.Mid(0, 300) : line);
FFound().Add(fn, ln, f.message, RawToValue(f));
}