summaryrefslogtreecommitdiff
path: root/script/core/hover/description.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/hover/description.lua')
-rw-r--r--script/core/hover/description.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/script/core/hover/description.lua b/script/core/hover/description.lua
index 5bb86603..b58a08b7 100644
--- a/script/core/hover/description.lua
+++ b/script/core/hover/description.lua
@@ -31,9 +31,8 @@ local function asStringInRequire(source, literal)
local shows = {}
for i, uri in ipairs(result) do
local searcher = searchers and searchers[uri]
- uri = files.getOriginUri(uri)
local path = furi.decode(uri)
- if files.eq(path:sub(1, #rootPath), rootPath) then
+ if path:sub(1, #rootPath) == rootPath then
path = path:sub(#rootPath + 1)
end
path = path:gsub('^[/\\]*', '')