aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-08 06:07:59 +0800
committerGitHub <noreply@github.com>2022-08-08 06:07:59 +0800
commit18766e742bdc8d179ff73b739a530052c9a669e5 (patch)
tree83e3b17023c1ea64db6072ce72712e7ccee71a23 /test
parent629169462a82f0fbb7a8911a4554894537d6776c (diff)
downloadrneovim-18766e742bdc8d179ff73b739a530052c9a669e5.tar.gz
rneovim-18766e742bdc8d179ff73b739a530052c9a669e5.tar.bz2
rneovim-18766e742bdc8d179ff73b739a530052c9a669e5.zip
fix(folds): fix fold remains when :delete makes buffer empty (#19673)
Diffstat (limited to 'test')
-rw-r--r--test/functional/ui/fold_spec.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/ui/fold_spec.lua b/test/functional/ui/fold_spec.lua
index c79fc2989c..6bb8bb81c6 100644
--- a/test/functional/ui/fold_spec.lua
+++ b/test/functional/ui/fold_spec.lua
@@ -1904,4 +1904,11 @@ describe("folded lines", function()
describe('without ext_multigrid', function()
with_ext_multigrid(false)
end)
+
+ it('no folds remains if :delete makes buffer empty #19671', function()
+ funcs.setline(1, {'foo', 'bar', 'baz'})
+ command('2,3fold')
+ command('%delete')
+ eq(0, funcs.foldlevel(1))
+ end)
end)