summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-20 15:36:09 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-20 15:36:09 +0800
commita6ed5f5845d3a859bd88c72f47bc4fa9d120b2df (patch)
treec4afeffe23e1a1b17197982186747b72bb77dd8e /script/core
parentf86c80cf43729d09f816c2ae7c13a26d80ed1179 (diff)
downloadlua-language-server-a6ed5f5845d3a859bd88c72f47bc4fa9d120b2df.zip
update
Diffstat (limited to 'script/core')
-rw-r--r--script/core/type-formatting.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/type-formatting.lua b/script/core/type-formatting.lua
index cc305982..24b4dde4 100644
--- a/script/core/type-formatting.lua
+++ b/script/core/type-formatting.lua
@@ -48,7 +48,7 @@ local function checkSplitOneLine(results, uri, position, ch)
end
local fPosition, fSymbol = findForward(uri, position, 'end', '}')
- if not fPosition then
+ if not fPosition or not fSymbol then
return
end
local bPosition = findBackward(uri, position, 'then', 'do', ')', '{')