ide: Fixed issue with UppHub headers in Assist

git-svn-id: svn://ultimatepp.org/upp/trunk@15836 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2021-03-11 13:50:11 +00:00
commit 627e4b8cd1
2 changed files with 6 additions and 5 deletions

View file

@ -719,8 +719,7 @@ void AssistEditor::AssistInsert()
<< (include_local ? "\"" : "<")
<< h << include_path
<< f.name
<< (f.kind == KIND_INCLUDEFOLDER ? "/" :
include_local ? "\"" : ">")
<< (f.kind == KIND_INCLUDEFOLDER ? "/" : include_local ? "\"" : ">")
, CHARSET_WIN1250));
if(f.kind == KIND_INCLUDEFOLDER) {
Assist();
@ -729,7 +728,7 @@ void AssistEditor::AssistInsert()
}
else {
String pkg = include_path.Left(include_path.GetCount() - 1);
Vector<String> nests = SplitDirs(GetVar("UPP"));
Vector<String> nests = GetUppDirs();
for(int i = 0; i < nests.GetCount(); i++){
if(FileExists(nests[i] + "/" + include_path + GetFileName(pkg) + ".upp")) {
Ide *ide = dynamic_cast<Ide *>(TheIde());