From 0c4915da62a96bf6db20377ce11fa887b6271ad9 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 2 Apr 2016 23:35:15 -0400 Subject: Code cleanup. Do not use `ipairs()` and use more consistent variable names among other things. --- modules/lua/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/lua') diff --git a/modules/lua/init.lua b/modules/lua/init.lua index bc5ced65..1fb007be 100644 --- a/modules/lua/init.lua +++ b/modules/lua/init.lua @@ -58,7 +58,7 @@ textadept.editing.autocompleters.lua = function() local fields = tag_line:match(';"\t(.*)$') local k, class = fields:sub(1, 1), fields:match('class:(%S+)') or '' if class == symbol and (op ~= ':' or k == 'f') then - list[#list + 1] = ("%s%s%d"):format(name, sep, xpms[k]) + list[#list + 1] = string.format('%s%s%d', name, sep, xpms[k]) list[name] = true end end -- cgit v1.2.3