In src/editor.c:

>  
>  	g_return_val_if_fail(editor, FALSE);
>  
> -	tags = tm_workspace_find_prefix(root, ft->lang, editor_prefs.autocompletion_max_entries);
> +	/* Get keywords and create a dummy TMTag array from them. These tags are
> +	 * then also searched when searching workspace */
> +	keywords = highlighting_get_keywords(ft->id);
> +	keyword_array = g_ptr_array_new_full(100, (GDestroyNotify)tm_tag_unref);
> +	foreach_strv(keyword, keywords)
> +	{
> +		if (**keyword != '\0')
> +		{
> +			TMTag *tag = tm_tag_new();
> +
> +			tag->name = g_strdup(*keyword);
> +			tag->lang = ft->lang;

This is a non-scope search (scope search doesn't make much sense for keywords, they in general don't appear after "." at least for the languages I know) and type isn't used anywhere in tm_workspace_find_prefix().


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.