diff options
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r-- | script/provider/provider.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index e7c27d2c..b90e5a13 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -806,8 +806,8 @@ proto.on('textDocument/foldingRange', function (params) local results = {} for _, region in ipairs(regions) do - local startLine = files.position(uri, region.start).line - local endLine = files.position(uri, region.finish).line + local startLine = files.position(uri, region.start, 'left').line + local endLine = files.position(uri, region.finish, 'right').line if not region.hideLastLine then endLine = endLine - 1 end |