summaryrefslogtreecommitdiff
path: root/src/testdir/test_fold.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-12-21 14:01:41 +0100
committerBram Moolenaar <Bram@vim.org>2020-12-21 14:01:41 +0100
commit6a78f328442073c32d58eafc13ce5a1ca7729eeb (patch)
tree548fff3a725c758dc9dde5f5444498c462c5219e /src/testdir/test_fold.vim
parent9aff970204234193045cfee205d51e2393e93bfd (diff)
downloadvim-git-6a78f328442073c32d58eafc13ce5a1ca7729eeb.tar.gz
patch 8.2.2176: crash with a sequence of fold commandsv8.2.2176
Problem: Crash with a sequence of fold commands. Solution: Bail out when there are no folds at all. Add a test (Dominique Pellé) (closes #7515)
Diffstat (limited to 'src/testdir/test_fold.vim')
-rw-r--r--src/testdir/test_fold.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test_fold.vim b/src/testdir/test_fold.vim
index 505ad0239..b978fc080 100644
--- a/src/testdir/test_fold.vim
+++ b/src/testdir/test_fold.vim
@@ -852,4 +852,11 @@ func Test_fold_create_delete_create()
bwipe!
endfunc
+" this was crashing
+func Test_fold_create_delete()
+ new
+ norm zFzFzdzj
+ bwipe!
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab