summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2022-03-05 02:25:04 +0800
committersumneko <sumneko@hotmail.com>2022-03-05 02:25:04 +0800
commit2107c1c82bccaaf2e2cce937412ef8d5e8741b45 (patch)
tree002fc60d3929e6afbb87cd9549771657b558269a /script
parentdf8d04bbdd3dab65ca593783f97b7f4c56e351d3 (diff)
downloadlua-language-server-2107c1c82bccaaf2e2cce937412ef8d5e8741b45.zip
fix
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 29e32c01..7ba45262 100644
--- a/script/files.lua
+++ b/script/files.lua
@@ -80,7 +80,7 @@ function m.close(uri)
file.trusted = false
end
m.onWatch('close', uri)
- if (file._ref or 0) <= 0 and not file.isOpen(uri) then
+ if (file._ref or 0) <= 0 and not m.isOpen(uri) then
m.remove(uri)
end
end