summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-11 15:21:56 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-11 15:23:26 +0800
commitecd09fc50a5199bc2f4888b5c11aec754101da5d (patch)
tree9a4f8ee3b6e670b6f77aeb1e727b563fe79cd4c8 /script
parentf48ff782d0a2fa4e453995e46c237fe405b8227d (diff)
downloadlua-language-server-ecd09fc50a5199bc2f4888b5c11aec754101da5d.zip
small fix
Diffstat (limited to 'script')
-rw-r--r--script/core/diagnostics/unknown-cast-variable.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/diagnostics/unknown-cast-variable.lua b/script/core/diagnostics/unknown-cast-variable.lua
index 57377f6e..3f082a50 100644
--- a/script/core/diagnostics/unknown-cast-variable.lua
+++ b/script/core/diagnostics/unknown-cast-variable.lua
@@ -24,7 +24,7 @@ return function (uri, callback)
callback {
start = doc.loc.start,
finish = doc.loc.finish,
- message = lang.script('DIAG_UNKNOWN_CAST_VARIABLE', doc[1])
+ message = lang.script('DIAG_UNKNOWN_CAST_VARIABLE', doc.loc[1])
}
end
end