summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
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', ')', '{')