diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2020-03-16 11:00:11 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2020-03-16 11:00:11 -0400 |
commit | 23a9f5b45e2eedf8366e0b0b45450190b66dd3f2 (patch) | |
tree | d1f4cabae1e4865058f8b78e465605fa442431b4 /modules/ansi_c/init.lua | |
parent | 88e963846ad48e60a6b245fc207ffa60d0cac84f (diff) |
Small code cleanup.
Diffstat (limited to 'modules/ansi_c/init.lua')
-rw-r--r-- | modules/ansi_c/init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/ansi_c/init.lua b/modules/ansi_c/init.lua index 72cd88b2..c4296023 100644 --- a/modules/ansi_c/init.lua +++ b/modules/ansi_c/init.lua @@ -55,9 +55,9 @@ textadept.editing.autocompleters.ansi_c = function() local sep = string.char(buffer.auto_c_type_separator) ::rescan:: local list = {} - for i = 1, #tags_files do - if not lfs.attributes(tags_files[i]) then goto continue end - for tag_line in io.lines(tags_files[i]) do + for _, filename in ipairs(tags_files) do + if not lfs.attributes(filename) then goto continue end + for tag_line in io.lines(filename) do local name = tag_line:match('^%S+') if (name:find(name_patt) and not name:find('^!') and not list[name]) or name == symbol and op == '' then |