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.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/textadept/snippets.lua b/modules/textadept/snippets.lua
index 76c36223..4827c8c8 100644
--- a/modules/textadept/snippets.lua
+++ b/modules/textadept/snippets.lua
@@ -368,10 +368,9 @@ M._snippet_mt = {
end,
}
-local INDIC_HIDDEN = buffer.INDIC_HIDDEN
-if buffer then buffer.indic_style[INDIC_SNIPPET] = INDIC_HIDDEN end
-events.connect(events.VIEW_NEW,
- function() buffer.indic_style[INDIC_SNIPPET] = INDIC_HIDDEN end)
+events.connect(events.VIEW_NEW, function()
+ buffer.indic_style[INDIC_SNIPPET] = buffer.INDIC_HIDDEN
+end)
---
-- Map of snippet triggers with their snippet text, with language-specific