diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2020-11-04 03:44:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-03 22:44:08 -0500 |
commit | aaaad0f5934460dfaf7ef7a29dcf38060c641b43 (patch) | |
tree | f2942571fcdf4bc78f8297f0e456266cdfd0295e /src/nvim/testdir | |
parent | eee0668818bee673b0f1637340c358cf83da2347 (diff) | |
download | rneovim-aaaad0f5934460dfaf7ef7a29dcf38060c641b43.tar.gz rneovim-aaaad0f5934460dfaf7ef7a29dcf38060c641b43.tar.bz2 rneovim-aaaad0f5934460dfaf7ef7a29dcf38060c641b43.zip |
vim-patch:8.2.1947: crash when using "zj" without folds (#13222)
Problem: Crash when using "zj" without folds. (Sean Dewar)
Solution: Check for at least one fold. (closes vim/vim#7245)
https://github.com/vim/vim/commit/c136a3528b7ebb825c3863d701af44f023381181
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_fold.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_fold.vim b/src/nvim/testdir/test_fold.vim index 692f6e4780..e4baa34e4a 100644 --- a/src/nvim/testdir/test_fold.vim +++ b/src/nvim/testdir/test_fold.vim @@ -795,3 +795,14 @@ func Test_fold_delete_first_line() bwipe! set foldmethod& endfunc + +" this was crashing +func Test_move_no_folds() + new + fold + setlocal fdm=expr + normal zj + bwipe! +endfunc + +" vim: shiftwidth=2 sts=2 expandtab |