summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorfesily <fesil@foxmail.com>2024-01-10 16:51:27 +0800
committerfesily <fesil@foxmail.com>2024-01-10 16:51:27 +0800
commitd023998316ff1ad32f9e247ae8746aabf4967ff9 (patch)
tree5dfc1077787b334fff1a323291e8dcc66bab91be /script
parent47e534a91d59666ad00595cdfef56af1e8906be2 (diff)
downloadlua-language-server-d023998316ff1ad32f9e247ae8746aabf4967ff9.zip
fix crash bug
Diffstat (limited to 'script')
-rw-r--r--script/files.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/files.lua b/script/files.lua
index b7a20e8b..8cc7a5ab 100644
--- a/script/files.lua
+++ b/script/files.lua
@@ -662,7 +662,7 @@ local function pluginOnTransformAst(uri, state)
if not suc then
return state
end
- state.ast = result
+ state.ast = result or state.ast
return state
end