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.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/textadept/snippets.lua b/modules/textadept/snippets.lua
index 3c2fb381..e723f712 100644
--- a/modules/textadept/snippets.lua
+++ b/modules/textadept/snippets.lua
@@ -367,6 +367,7 @@ M._snippet_mt = {
-- Jumps to the next placeholder in this snippet and adds additional carets
-- at mirrors.
next = function(self)
+ if buffer:auto_c_active() then buffer:auto_c_complete() end
-- Take a snapshot of the current state in order to restore it later if
-- necessary.
if self.index > 0 then