aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/snippets.lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/textadept/snippets.lua')
-rw-r--r--modules/textadept/snippets.lua6
1 files changed, 3 insertions, 3 deletions
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)