mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-19 14:22:42 -06:00
ide: Fixed minor issue in Assist
git-svn-id: svn://ultimatepp.org/upp/trunk@14665 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
1e58f89f8f
commit
79158efaf5
1 changed files with 5 additions and 5 deletions
|
|
@ -726,11 +726,12 @@ void AssistEditor::AssistInsert()
|
|||
Assist();
|
||||
IgnoreMouseUp();
|
||||
return;
|
||||
} else {
|
||||
String pkg = include_path.Left(include_path.GetCount()-1);
|
||||
}
|
||||
else {
|
||||
String pkg = include_path.Left(include_path.GetCount() - 1);
|
||||
Vector<String> nests = SplitDirs(GetVar("UPP"));
|
||||
for(int i = 0; i < nests.GetCount(); i++){
|
||||
if(FileExists(nests[i]+"/"+include_path+GetFileName(pkg)+".upp")) {
|
||||
if(FileExists(nests[i] + "/" + include_path + GetFileName(pkg) + ".upp")) {
|
||||
Ide *ide = dynamic_cast<Ide *>(TheIde());
|
||||
if(ide)
|
||||
ide->AddPackage(pkg);
|
||||
|
|
@ -771,8 +772,7 @@ void AssistEditor::AssistInsert()
|
|||
if(!thisback && f.kind >= FUNCTION && f.kind <= INLINEFRIEND) {
|
||||
SetCursor(GetCursor32() - 1);
|
||||
StartParamInfo(f, cl);
|
||||
int x = f.natural.ReverseFind('(');
|
||||
if(x >= 0 && f.natural[x + 1] == ')')
|
||||
if(f.natural.EndsWith("()"))
|
||||
SetCursor(GetCursor32() + 1);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue