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;

shouldn't it have a type for autoc to work best?


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