mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
ide: Minor fix of insert include
git-svn-id: svn://ultimatepp.org/upp/trunk@11923 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
9c7859142d
commit
f7ffce1a0a
1 changed files with 7 additions and 5 deletions
|
|
@ -175,11 +175,13 @@ void Ide::InsertInclude(Bar& bar)
|
|||
String all;
|
||||
for(int i = 0; i < w.GetCount(); i++) {
|
||||
const Package& p = w.GetPackage(i);
|
||||
if(p.GetCount() && findarg(ToLower(GetFileExt(p[0])), ".h", ".hpp") >= 0) {
|
||||
String h; h << "#include <" << w[i] << "/" << p[0] << '>';
|
||||
bar.Add(h, THISBACK1(InsertText, h + '\n'));
|
||||
all << h << '\n';
|
||||
}
|
||||
for(int j = 0; j < p.GetCount(); j++)
|
||||
if(findarg(ToLower(GetFileExt(p[j])), ".h", ".hpp") >= 0) {
|
||||
String h; h << "#include <" << w[i] << "/" << p[j] << '>';
|
||||
bar.Add(h, THISBACK1(InsertText, h + '\n'));
|
||||
all << h << '\n';
|
||||
break;
|
||||
}
|
||||
}
|
||||
bar.Add("All #includes", THISBACK1(InsertText, all));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue