aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/snippets.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-12-31 16:39:25 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2011-12-31 16:39:25 -0500
commitae8dddf78ef5b07f4d64471d8f6800746373af6e (patch)
tree7c823a6df24dbec739559953e1c5d044067e226b /modules/textadept/snippets.lua
parentd9b2bf4b99d13e18f0ca4939e7f2ccc75472a846 (diff)
downloadtextadept-ae8dddf78ef5b07f4d64471d8f6800746373af6e.tar.gz
textadept-ae8dddf78ef5b07f4d64471d8f6800746373af6e.zip
Code cleanup.
Diffstat (limited to 'modules/textadept/snippets.lua')
-rw-r--r--modules/textadept/snippets.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/textadept/snippets.lua b/modules/textadept/snippets.lua
index fc26427b..189c5e92 100644
--- a/modules/textadept/snippets.lua
+++ b/modules/textadept/snippets.lua
@@ -223,10 +223,7 @@ function M._select()
local list = {}
local type = type
for trigger, text in pairs(snippets) do
- if type(text) == 'string' and
- trigger ~= '_NAME' and trigger ~= '_PACKAGE' then
- list[#list + 1] = trigger..'\0global\0'..text
- end
+ if type(text) == 'string' then list[#list + 1] = trigger..'\0 \0'..text end
end
local lexer = buffer:get_lexer()
for trigger, text in pairs(snippets[lexer] or {}) do