From 6d8d01a364ba9786b7f9698840ba60e769954808 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 23 Nov 2011 08:22:55 -0500 Subject: Code cleanup. --- modules/textadept/snippets.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/textadept/snippets.lua') diff --git a/modules/textadept/snippets.lua b/modules/textadept/snippets.lua index 45f32d83..3763ab7c 100644 --- a/modules/textadept/snippets.lua +++ b/modules/textadept/snippets.lua @@ -214,17 +214,17 @@ end -- Global snippets and snippets in the current lexer are shown. function _select() local list = {} - local table_concat, type = table.concat, type + local type = type for trigger, text in pairs(snippets) do if type(text) == 'string' and trigger ~= '_NAME' and trigger ~= '_PACKAGE' then - list[#list + 1] = table_concat({trigger, 'global', text }, '\0') + list[#list + 1] = trigger..'\0global\0'..text end end local lexer = buffer:get_lexer() for trigger, text in pairs(snippets[lexer] or {}) do if type(text) == 'string' then - list[#list + 1] = table_concat({trigger, lexer, text }, '\0') + list[#list + 1] = trigger..'\0'..lexer..'\0'..text end end table.sort(list) -- cgit v1.2.3