Skip to content

Commit 3f3897e

Browse files
committed
patch 8.0.0407: filtering folds with marker method not tested
Problem: Filtering folds with marker method not tested. Solution: Also set 'foldmethod' to "marker".
1 parent 7f73b54 commit 3f3897e

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

src/testdir/test_fold.vim

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,20 @@ func Test_manual_fold_with_filter()
100100
if !executable('cat')
101101
return
102102
endif
103-
new
104-
call setline(1, range(1, 20))
105-
4,$fold
106-
%foldopen
107-
10,$fold
108-
%foldopen
109-
" This filter command should not have an effect
110-
1,8! cat
111-
call feedkeys('5ggzdzMGdd', 'xt')
112-
call assert_equal(['1', '2', '3', '4', '5', '6', '7', '8', '9'], getline(1, '$'))
113-
bwipe!
103+
for type in ['manual', 'marker']
104+
exe 'set foldmethod=' . type
105+
new
106+
call setline(1, range(1, 20))
107+
4,$fold
108+
%foldopen
109+
10,$fold
110+
%foldopen
111+
" This filter command should not have an effect
112+
1,8! cat
113+
call feedkeys('5ggzdzMGdd', 'xt')
114+
call assert_equal(['1', '2', '3', '4', '5', '6', '7', '8', '9'], getline(1, '$'))
115+
116+
bwipe!
117+
set foldmethod&
118+
endfor
114119
endfunc

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
407,
767769
/**/
768770
406,
769771
/**/

0 commit comments

Comments
 (0)