ide: Finding improved

git-svn-id: svn://ultimatepp.org/upp/trunk@10965 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-03-22 15:02:21 +00:00
parent 7560f610ea
commit db2c09a24b
5 changed files with 31 additions and 27 deletions

View file

@ -313,7 +313,8 @@ void Ide::FindFileAll(const Vector<Tuple<int, int>>& f)
for(auto pos : f) {
editor.CachePos(pos.a);
int linei = editor.GetLinePos(pos.a);
AddFoundFile(editfile, linei + 1, editor.GetUtf8Line(linei), pos.a, pos.b);
WString ln = editor.GetWLine(linei);
AddFoundFile(editfile, linei + 1, ln.ToString(), lenAsUtf8(~ln, pos.a), lenAsUtf8(~ln + pos.a, pos.b));
}
ffound.HeaderTab(2).SetText(Format("Source line (%d)", ffound.GetCount()));
ffound.Add(Null, Null, AsString(f.GetCount()) + " occurrence(s) have been found.");