Mercurial > vim
diff src/testdir/test_fold.vim @ 18114:90b0af9ba4ff v8.1.2052
patch 8.1.2052: using "x" before a closed fold may delete that fold
Commit: https://github.com/vim/vim/commit/7a9bd7c1e0ce1baf5a02daf36eeae3638aa315c7
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 17 22:42:55 2019 +0200
patch 8.1.2052: using "x" before a closed fold may delete that fold
Problem: Using "x" before a closed fold may delete that fold.
Solution: Do not translate 'x' do "dl". (Christian Brabandt, closes https://github.com/vim/vim/issues/4927)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 17 Sep 2019 22:45:05 +0200 |
parents | 73ddc462979d |
children | f9e41ffd3539 |
line wrap: on
line diff
--- a/src/testdir/test_fold.vim +++ b/src/testdir/test_fold.vim @@ -757,3 +757,15 @@ func Test_fold_delete_with_marker() bwipe! bwipe! endfunc + +func Test_fold_delete_with_marker_and_whichwrap() + new + let content1 = [''] + let content2 = ['folded line 1 "{{{1', ' test', ' test2', ' test3', '', 'folded line 2 "{{{1', ' test', ' test2', ' test3'] + call setline(1, content1 + content2) + set fdm=marker ww+=l + normal! x + call assert_equal(content2, getline(1, '$')) + set fdm& ww& + bwipe! +endfunc