fix(folds): use the correct rational operator

Fixes a bug introduced in 41ed83ffc7
Closes #1226
This commit is contained in:
Grzegorz Rozdzialik 2021-04-23 18:17:37 +02:00 committed by Stephan Seitz
parent 6fbdf14695
commit aee9ba401e

View file

@ -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