diff options
author | 2011-11-23 08:22:55 -0500 | |
---|---|---|
committer | 2011-11-23 08:22:55 -0500 | |
commit | 6d8d01a364ba9786b7f9698840ba60e769954808 (patch) | |
tree | 19afb5afac0889d6c1a92bb2c33ee551f902a134 /modules/textadept/snippets.lua | |
parent | f1db4cacfe3aa49ac03e50f05ea522e69b1a0b63 (diff) | |
download | textadept-6d8d01a364ba9786b7f9698840ba60e769954808.tar.gz textadept-6d8d01a364ba9786b7f9698840ba60e769954808.zip |
Code cleanup.
Diffstat (limited to 'modules/textadept/snippets.lua')
-rw-r--r-- | modules/textadept/snippets.lua | 6 |
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) |