mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-10 03:54:54 -06:00
ide: Finding improved
git-svn-id: svn://ultimatepp.org/upp/trunk@10965 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7560f610ea
commit
db2c09a24b
5 changed files with 31 additions and 27 deletions
|
|
@ -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.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue