Reuse find_work_object_tag() in find_workspace_tag().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2398 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
2431e450a0
commit
bdf2a271f4
@ -327,14 +327,9 @@ static TMTag *find_workspace_tag(const gchar *tag_name, gint type)
|
||||
for (j = 0; j < work_objects->len; j++)
|
||||
{
|
||||
TMWorkObject *workobj = TM_WORK_OBJECT(work_objects->pdata[j]);
|
||||
const GPtrArray *tags;
|
||||
TMTag *tmtag;
|
||||
|
||||
tags = tm_tags_extract(workobj->tags_array, type);
|
||||
if (tags == NULL)
|
||||
continue;
|
||||
|
||||
tmtag = symbols_find_tm_tag(tags, tag_name);
|
||||
tmtag = find_work_object_tag(workobj, tag_name, type);
|
||||
if (tmtag != NULL)
|
||||
return tmtag;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user