summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_fold.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-09-17 22:42:55 +0200
committerBram Moolenaar <Bram@vim.org>2019-09-17 22:42:55 +0200
commit7a9bd7c1e0ce1baf5a02daf36eeae3638aa315c7 (patch)
treeff28a87ff9894a452f2f27c938c1370f958c16da /src/testdir/test_fold.vim
parent705918f9f7e446287923cf0248ea35f2a0688199 (diff)
patch 8.1.2052: using "x" before a closed fold may delete that foldv8.1.2052
Problem: Using "x" before a closed fold may delete that fold. Solution: Do not translate 'x' do "dl". (Christian Brabandt, closes #4927)
Diffstat (limited to 'src/testdir/test_fold.vim')
-rw-r--r--src/testdir/test_fold.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/testdir/test_fold.vim b/src/testdir/test_fold.vim
index 7aef51f8bd..824a4f22f6 100644
--- 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