Fix Pawn functions not being suggested before the point of their definition/implementation

This commit is contained in:
Daniel_Cortez 2018-12-31 20:23:29 +07:00
parent b411e5a7bc
commit d72c58236e

View File

@ -509,7 +509,7 @@ static int find_closest_symbol_table(const char *name,const symbol *root,int sym
for (sym=root->next; sym!=NULL; sym=sym->next) {
if (sym->fnumber!=-1 && sym->fnumber!=fcurrent)
continue;
if ((sym->usage & uDEFINE)==0)
if ((sym->usage & uDEFINE)==0 && (sym->ident!=iFUNCTN || (sym->usage & (uNATIVE | uPROTOTYPED))!=uPROTOTYPED))
continue;
switch (sym->ident)
{