diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-09-15 16:11:30 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-09-15 16:11:30 +0800 |
commit | 8880b7d63931469c0b7bfb69004f342236ce2811 (patch) | |
tree | b9577858f20755d593ecf08dad5e2cd5e46559db /script/core/completion.lua | |
parent | 6fddbbf0b34729327670ac1687d88b38739e12a9 (diff) | |
download | lua-language-server-8880b7d63931469c0b7bfb69004f342236ce2811.zip |
cleanup
Diffstat (limited to 'script/core/completion.lua')
-rw-r--r-- | script/core/completion.lua | 2 |
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) |