From 3a0af8b2f77401438e833923064ebe10df7230c7 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 28 May 2014 01:05:50 -0400 Subject: Utilize list separator characters instead of hard-coded characters. --- modules/lua/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/lua') diff --git a/modules/lua/init.lua b/modules/lua/init.lua index 82320b20..9c86b8bf 100644 --- a/modules/lua/init.lua +++ b/modules/lua/init.lua @@ -58,6 +58,7 @@ textadept.editing.autocompleters.lua = function() end -- Search through ctags for completions for that symbol. local name_patt = '^'..part + local sep = string.char(buffer.auto_c_type_separator) for i = 1, #M.tags do if lfs.attributes(M.tags[i]) then for line in io.lines(M.tags[i]) do @@ -66,7 +67,8 @@ textadept.editing.autocompleters.lua = function() local fields = 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], list[name] = ("%s?%d"):format(name, xpms[k]), true + list[#list + 1] = ("%s%s%d"):format(name, sep, xpms[k]) + list[name] = true end end end -- cgit v1.2.3