diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-06-11 21:07:47 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-11 21:07:47 -0400 |
| commit | d09b8ad715ca327766ed9f32c45e1776dae679f4 (patch) | |
| tree | 1137d78266238d2e3de42c3f1fbca8107c57e8f3 /src/nvim/testdir/test_fold.vim | |
| parent | a9b8c780fe3b74cec12747101e351ba7d13451f1 (diff) | |
| parent | 2644fe5b7c7dd0381543da56b9444bda79f14676 (diff) | |
| download | rneovim-d09b8ad715ca327766ed9f32c45e1776dae679f4.tar.gz rneovim-d09b8ad715ca327766ed9f32c45e1776dae679f4.tar.bz2 rneovim-d09b8ad715ca327766ed9f32c45e1776dae679f4.zip | |
Merge pull request #14761 from janlazo/vim-8.2.2966
vim-patch:8.2.{1702,2422,2966,2971,2974}
Diffstat (limited to 'src/nvim/testdir/test_fold.vim')
| -rw-r--r-- | src/nvim/testdir/test_fold.vim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_fold.vim b/src/nvim/testdir/test_fold.vim index fcdf888b96..2cc5b47cb0 100644 --- a/src/nvim/testdir/test_fold.vim +++ b/src/nvim/testdir/test_fold.vim @@ -796,6 +796,26 @@ func Test_fold_delete_first_line() set foldmethod& endfunc +func Test_undo_fold_deletion() + new + set fdm=marker + let lines =<< trim END + " {{{ + " }}}1 + " {{{ + END + call setline(1, lines) + 3d + g/"/d + undo + redo + " eval getline(1, '$')->assert_equal(['']) + eval assert_equal(getline(1, '$'), ['']) + + set fdm&vim + bwipe! +endfunc + " this was crashing func Test_move_no_folds() new |