mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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".
This commit is contained in:
@@ -100,6 +100,8 @@ func Test_manual_fold_with_filter()
|
|||||||
if !executable('cat')
|
if !executable('cat')
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
for type in ['manual', 'marker']
|
||||||
|
exe 'set foldmethod=' . type
|
||||||
new
|
new
|
||||||
call setline(1, range(1, 20))
|
call setline(1, range(1, 20))
|
||||||
4,$fold
|
4,$fold
|
||||||
@@ -110,5 +112,8 @@ func Test_manual_fold_with_filter()
|
|||||||
1,8! cat
|
1,8! cat
|
||||||
call feedkeys('5ggzdzMGdd', 'xt')
|
call feedkeys('5ggzdzMGdd', 'xt')
|
||||||
call assert_equal(['1', '2', '3', '4', '5', '6', '7', '8', '9'], getline(1, '$'))
|
call assert_equal(['1', '2', '3', '4', '5', '6', '7', '8', '9'], getline(1, '$'))
|
||||||
|
|
||||||
bwipe!
|
bwipe!
|
||||||
|
set foldmethod&
|
||||||
|
endfor
|
||||||
endfunc
|
endfunc
|
||||||
|
@@ -764,6 +764,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
407,
|
||||||
/**/
|
/**/
|
||||||
406,
|
406,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user