diff options
| author | Grzegorz Rozdzialik <grzegorz.rozdzialik@codilime.com> | 2021-04-23 18:17:37 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.lauf@yahoo.de> | 2021-04-23 19:27:21 +0200 |
| commit | aee9ba401e9a00dc3bc52a84aa92ef475f3a39df (patch) | |
| tree | dc0ac1b88c086b41ba0bd7b2544607a6947d7b80 /lua | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-aee9ba401e9a00dc3bc52a84aa92ef475f3a39df.tar nvim-treesitter-aee9ba401e9a00dc3bc52a84aa92ef475f3a39df.tar.gz nvim-treesitter-aee9ba401e9a00dc3bc52a84aa92ef475f3a39df.tar.bz2 nvim-treesitter-aee9ba401e9a00dc3bc52a84aa92ef475f3a39df.tar.lz nvim-treesitter-aee9ba401e9a00dc3bc52a84aa92ef475f3a39df.tar.xz nvim-treesitter-aee9ba401e9a00dc3bc52a84aa92ef475f3a39df.tar.zst nvim-treesitter-aee9ba401e9a00dc3bc52a84aa92ef475f3a39df.zip | |
fix(folds): use the correct rational operator
Fixes a bug introduced in 41ed83ffc762b611644a311e344b33d5efc01944
Closes #1226
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-treesitter/fold.lua | 2 |
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 |
