mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 06:05:58 -06:00
ide: Autocomple now ignores dv___ items (layout placeholders)
This commit is contained in:
parent
e427960b2a
commit
f7ebcbd97b
2 changed files with 11 additions and 6 deletions
|
|
@ -713,12 +713,13 @@ void AssistEditor::Assist(bool macros)
|
|||
assist_type.Add("<macros>");
|
||||
if(has_globals)
|
||||
assist_type.Add(Null);
|
||||
for(const AutoCompleteItem& m : items) {
|
||||
AssistItem& f = assist_item.Add();
|
||||
(AutoCompleteItem&)f = m;
|
||||
f.uname = ToUpper(f.name);
|
||||
f.typei = assist_type.FindAdd(f.kind == CXCursor_MacroDefinition ? "<macros>" : f.parent);
|
||||
}
|
||||
for(const AutoCompleteItem& m : items)
|
||||
if(!m.name.StartsWith("dv___")) {
|
||||
AssistItem& f = assist_item.Add();
|
||||
(AutoCompleteItem&)f = m;
|
||||
f.uname = ToUpper(f.name);
|
||||
f.typei = assist_type.FindAdd(f.kind == CXCursor_MacroDefinition ? "<macros>" : f.parent);
|
||||
}
|
||||
PopUpAssist();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -145,6 +145,10 @@ void OnCrash()
|
|||
#endif
|
||||
}
|
||||
|
||||
INITBLOCK { // libclang does not work in Linux unless this is set
|
||||
SetEnv("LC_CTYPE", "en_US.UTF-8");
|
||||
}
|
||||
|
||||
#ifdef flagMAIN
|
||||
GUI_APP_MAIN
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue