From d5ba0b9a714cfc265f69d3d03974cfbfa0281176 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 18 Feb 2020 15:30:18 -0500 Subject: Fixed C autocompletion error with typerefs. A typeref would have always been considered a member of itself. --- modules/ansi_c/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/ansi_c/init.lua') diff --git a/modules/ansi_c/init.lua b/modules/ansi_c/init.lua index 0daf562b..5d2f85ce 100644 --- a/modules/ansi_c/init.lua +++ b/modules/ansi_c/init.lua @@ -56,7 +56,7 @@ textadept.editing.autocompleters.ansi_c = function() for tag_line in io.lines(tags_files[i]) do local name = tag_line:match('^%S+') if (name:find(name_patt) and not name:find('^!') and not list[name]) or - name == symbol then + name == symbol and op == '' then local fields = tag_line:match(';"\t(.*)$') if (fields:match('class:(%S+)') or fields:match('enum:(%S+)') or fields:match('struct:(%S+)') or '') == symbol then -- cgit v1.2.3