diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2020-02-18 15:30:18 -0500 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2020-02-18 15:30:18 -0500 |
commit | d5ba0b9a714cfc265f69d3d03974cfbfa0281176 (patch) | |
tree | 5a9a11d8c7f0c4d7a6f656308c0d11c0e3a0d575 | |
parent | 7db3550b3cdffaeacb6c8455a6c6de77fb5ddd27 (diff) |
Fixed C autocompletion error with typerefs.
A typeref would have always been considered a member of itself.
-rw-r--r-- | modules/ansi_c/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |