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:
cxl 2020-07-07 13:36:41 +00:00
parent 1e58f89f8f
commit 79158efaf5

View file

@ -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