aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-08-06 16:53:34 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2009-08-06 16:53:34 -0400
commitc40619890e0dbe71a8668609d0f6ffb32f0781c6 (patch)
tree742dd5b7bb6b20725e0005c89ec93b595c8c10af /modules
parent6f6e68070377c04d54c41f1b7ecce580f4f5d927 (diff)
downloadtextadept-c40619890e0dbe71a8668609d0f6ffb32f0781c6.tar.gz
textadept-c40619890e0dbe71a8668609d0f6ffb32f0781c6.zip
Fixed bug introduced during refactoring; modules/textadept/lsnippets.lua
Diffstat (limited to 'modules')
-rw-r--r--modules/textadept/lsnippets.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/textadept/lsnippets.lua b/modules/textadept/lsnippets.lua
index a4e4abf3..3696874b 100644
--- a/modules/textadept/lsnippets.lua
+++ b/modules/textadept/lsnippets.lua
@@ -193,6 +193,7 @@ end
-- the next placeholder or tab stop.
-- @return false if no snippet was expanded; nil otherwise
local function next_tab_stop()
+ if not snippet.index then return false end -- no snippet active
local buffer = buffer
local s_start, s_end, s_text = snippet_info()
if not s_text then