diff options
Diffstat (limited to 'server/src/method')
-rw-r--r-- | server/src/method/textDocument/foldingRange.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/method/textDocument/foldingRange.lua b/server/src/method/textDocument/foldingRange.lua index 33346285..0320b422 100644 --- a/server/src/method/textDocument/foldingRange.lua +++ b/server/src/method/textDocument/foldingRange.lua @@ -10,6 +10,9 @@ local function convertRange(lines, range) endLine = finish_row - 2, kind = range.kind, } + if result.startLine >= result.endLine then + return nil + end return result end |