diff options
Diffstat (limited to 'server/src/method/workspace/executeCommand.lua')
-rw-r--r-- | server/src/method/workspace/executeCommand.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/src/method/workspace/executeCommand.lua b/server/src/method/workspace/executeCommand.lua index 00ee09a3..5a8612c5 100644 --- a/server/src/method/workspace/executeCommand.lua +++ b/server/src/method/workspace/executeCommand.lua @@ -14,12 +14,11 @@ local function isContainPos(obj, start, finish) end local function isInString(vm, start, finish) - for _, source in ipairs(vm.sources) do + return vm:eachSource(function (source) if source.type == 'string' and isContainPos(source, start, finish) then return true end - end - return false + end) end local function posToRange(lines, start, finish) |