summaryrefslogtreecommitdiff
path: root/server/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/core')
-rw-r--r--server/src/core/diagnostics.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/core/diagnostics.lua b/server/src/core/diagnostics.lua
index e5fd0ba5..8584897e 100644
--- a/server/src/core/diagnostics.lua
+++ b/server/src/core/diagnostics.lua
@@ -73,7 +73,7 @@ function mt:searchUnusedFunctions(callback)
if info.type == 'set' or info.type == 'local' then
local v = src:bindValue()
local func = v and v:getFunction()
- if func then
+ if func and func:getSource().uri == self.vm.uri then
callback(func:getSource().start, func:getSource().finish)
end
end