diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-09-23 17:34:51 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-09-23 17:34:51 +0800 |
commit | 48fe9fdd2071da918d3c7f0011f0e8c56b865b9f (patch) | |
tree | e8154b1ad6feb49e10f9f676405ba43b61a8e1da /script/files.lua | |
parent | e98031d6afff3e8a1b383ad0548d5857c3f06ace (diff) | |
download | lua-language-server-48fe9fdd2071da918d3c7f0011f0e8c56b865b9f.zip |
fix
Diffstat (limited to 'script/files.lua')
-rw-r--r-- | script/files.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/files.lua b/script/files.lua index dc39a446..19f4da89 100644 --- a/script/files.lua +++ b/script/files.lua @@ -518,8 +518,8 @@ function m.getVisibles(uri) end local visibles = {} for i, range in ipairs(ranges) do - local startRow = guide.rowColOf(range.start) - local finishRow = guide.rowColOf(range['end']) + local startRow = range.start.line + local finishRow = range['end'].line visibles[i] = { start = guide.positionOf(startRow, 0), finish = guide.positionOf(finishRow, 0), |