From 407cd575e66b7f3aa7b0624f7dccaef81ba48658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 16 Sep 2020 10:43:13 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3#t+1=E6=9C=89=E6=97=B6=E4=B8=8D?= =?UTF-8?q?=E4=BC=9A=E6=B7=BB=E5=8A=A0=20=3D=20=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-beta/core/completion.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script-beta/core/completion.lua') 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 .. ' = ' -- cgit v1.2.3