Show D struct constructor calltips also

This commit is contained in:
Nick Treleaven 2012-01-04 16:08:38 +00:00
parent 7aa5d9516d
commit 39ff492e4b

View File

@ -1828,7 +1828,8 @@ static gchar *find_calltip(const gchar *word, GeanyFiletype *ft)
tag = TM_TAG(tags->pdata[0]);
if (tag->type == tm_tag_class_t && FILETYPE_ID(ft) == GEANY_FILETYPES_D)
if (ft->id == GEANY_FILETYPES_D &&
(tag->type == tm_tag_class_t || tag->type == tm_tag_struct_t))
{
/* user typed e.g. 'new Classname(' so lookup D constructor Classname::this() */
tags = tm_workspace_find_scoped("this", tag->name,