mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 00:10:04 -04:00
fix(folds): use the correct rational operator
Fixes a bug introduced in 41ed83ffc7
Closes #1226
This commit is contained in:
parent
6fbdf14695
commit
aee9ba401e
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ local folds_levels = tsutils.memoize_by_buf_tick(function(bufnr)
|
||||||
stop = stop + 1
|
stop = stop + 1
|
||||||
end
|
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
|
-- This can be folded
|
||||||
-- Fold only multiline nodes that are not exactly the same as previously met folds
|
-- Fold only multiline nodes that are not exactly the same as previously met folds
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue