summaryrefslogtreecommitdiff
path: root/script-beta/core/completion.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script-beta/core/completion.lua')
-rw-r--r--script-beta/core/completion.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script-beta/core/completion.lua b/script-beta/core/completion.lua
index 7c2f8628..a3fbae0b 100644
--- a/script-beta/core/completion.lua
+++ b/script-beta/core/completion.lua
@@ -582,7 +582,7 @@ local function checkLenPlusOne(ast, text, offset, results)
if source.parent == guide.getParentBlock(source) then
-- state
local label = text:match('%#[ \t]*', pos) .. nodeText .. '+1'
- local eq = text:find('%s*%=', source.node.finish)
+ local eq = text:find('^%s*%=', source.node.finish)
local newText = label .. ']'
if not eq then
newText = newText .. ' = '