diff options
Diffstat (limited to 'server/src/workspace.lua')
-rw-r--r-- | server/src/workspace.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/workspace.lua b/server/src/workspace.lua index 9e9c03d2..aaa9a47d 100644 --- a/server/src/workspace.lua +++ b/server/src/workspace.lua @@ -181,7 +181,7 @@ function mt:matchPath(baseUri, input) local list = self:convertPathAsRequire(filename, start + 1) if list then for _, str in ipairs(list) do - if #str >= #input then + if #str >= #input and str:sub(1, #input) == input then if not map[str] or similarity(filename, baseName) > similarity(map[str], baseName) then |