aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/fold.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/fold.lua b/lua/nvim-treesitter/fold.lua
index 124cfa2ed..8fb6e4af1 100644
--- a/lua/nvim-treesitter/fold.lua
+++ b/lua/nvim-treesitter/fold.lua
@@ -30,7 +30,7 @@ local folds_levels = tsutils.memoize_by_buf_tick(function(bufnr)
stop = stop + 1
end
- local should_fold = start + 1 > stop -- Only fold for 2+ lines
+ local should_fold = start + 1 < stop -- Only fold for 2+ lines
-- This can be folded
-- Fold only multiline nodes that are not exactly the same as previously met folds