summaryrefslogtreecommitdiff
path: root/script/core/completion.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-09-15 16:11:30 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-09-15 16:11:30 +0800
commit8880b7d63931469c0b7bfb69004f342236ce2811 (patch)
treeb9577858f20755d593ecf08dad5e2cd5e46559db /script/core/completion.lua
parent6fddbbf0b34729327670ac1687d88b38739e12a9 (diff)
downloadlua-language-server-8880b7d63931469c0b7bfb69004f342236ce2811.zip
cleanup
Diffstat (limited to 'script/core/completion.lua')
-rw-r--r--script/core/completion.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua
index 59dc19f3..1b64bef1 100644
--- a/script/core/completion.lua
+++ b/script/core/completion.lua
@@ -176,7 +176,7 @@ local function getSnip(source)
if vm.isMetaFile(uri) then
goto CONTINUE
end
- local row = guide.positionOf(def.start)
+ local row = guide.rowColOf(def.start)
local firstRow = lines[row]
local lastRow = lines[math.min(row + context - 1, #lines)]
local snip = text:sub(firstRow.start, lastRow.finish)