diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-04-08 21:30:44 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-04-08 21:30:44 +0800 |
commit | 5dc53106c3291bd796b7c9145d6d2b9d695b15c1 (patch) | |
tree | f0401232a7402c2ab198224ea202dc61c2bbcfe9 | |
parent | 6515fb49d7084c1547e3ccce7c06917e32e2b2da (diff) | |
download | lua-language-server-5dc53106c3291bd796b7c9145d6d2b9d695b15c1.zip |
fix completion header
-rw-r--r-- | script/workspace/require-path.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/script/workspace/require-path.lua b/script/workspace/require-path.lua index 220755b4..963cc6d7 100644 --- a/script/workspace/require-path.lua +++ b/script/workspace/require-path.lua @@ -61,11 +61,12 @@ function m.getVisiblePath(path, searchers, strict) end local expect = getOnePath(cutedPath, searcher) if expect then + local mySearcher = searcher if head then - searcher = head .. searcher + mySearcher = head .. searcher end result[#result+1] = { - searcher = searcher, + searcher = mySearcher, expect = expect, } end |