Show D struct constructor calltips also
This commit is contained in:
parent
7aa5d9516d
commit
39ff492e4b
@ -1828,7 +1828,8 @@ static gchar *find_calltip(const gchar *word, GeanyFiletype *ft)
|
|||||||
|
|
||||||
tag = TM_TAG(tags->pdata[0]);
|
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() */
|
/* user typed e.g. 'new Classname(' so lookup D constructor Classname::this() */
|
||||||
tags = tm_workspace_find_scoped("this", tag->name,
|
tags = tm_workspace_find_scoped("this", tag->name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user