From 8c35c44a9b25f104430936cb68f4daece468ec8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 28 Sep 2020 02:46:26 +0800 Subject: =?UTF-8?q?=E5=8C=BA=E5=88=86=E5=A4=A7=E5=B0=8F=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-beta/core/hover/description.lua | 2 +- script-beta/workspace/workspace.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'script-beta') diff --git a/script-beta/core/hover/description.lua b/script-beta/core/hover/description.lua index af6ad608..9e0066e6 100644 --- a/script-beta/core/hover/description.lua +++ b/script-beta/core/hover/description.lua @@ -39,8 +39,8 @@ local function asString(source) end path = path:gsub('^[/\\]*', '') if searcher then - searcher = ws.normalize(searcher) searcher = searcher:sub(#ws.path + 1) + searcher = ws.normalize(searcher) result[i] = ('* [%s](%s) (假设搜索路径包含 `%s`)'):format(path, uri, searcher) else result[i] = ('* [%s](%s)'):format(path, uri) diff --git a/script-beta/workspace/workspace.lua b/script-beta/workspace/workspace.lua index 9ddb6bff..4413775a 100644 --- a/script-beta/workspace/workspace.lua +++ b/script-beta/workspace/workspace.lua @@ -155,7 +155,7 @@ function m.findUrisByFilePath(path) local see = uri:sub(uriLen - pathLen + 1, uriLen) if files.eq(see, path) then results[#results+1] = uri - posts[uri] = uri:sub(1, uriLen - pathLen) + posts[uri] = files.getOriginUri(uri):sub(1, uriLen - pathLen) end end end -- cgit v1.2.3