mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-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:
parent
308a953e0b
commit
a6c9c91841
@ -120,17 +120,22 @@ func Test_manual_fold_with_filter()
|
|||||||
if !executable('cat')
|
if !executable('cat')
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
new
|
for type in ['manual', 'marker']
|
||||||
call setline(1, range(1, 20))
|
exe 'set foldmethod=' . type
|
||||||
4,$fold
|
new
|
||||||
%foldopen
|
call setline(1, range(1, 20))
|
||||||
10,$fold
|
4,$fold
|
||||||
%foldopen
|
%foldopen
|
||||||
" This filter command should not have an effect
|
10,$fold
|
||||||
1,8! cat
|
%foldopen
|
||||||
call feedkeys('5ggzdzMGdd', 'xt')
|
" This filter command should not have an effect
|
||||||
call assert_equal(['1', '2', '3', '4', '5', '6', '7', '8', '9'], getline(1, '$'))
|
1,8! cat
|
||||||
bwipe!
|
call feedkeys('5ggzdzMGdd', 'xt')
|
||||||
|
call assert_equal(['1', '2', '3', '4', '5', '6', '7', '8', '9'], getline(1, '$'))
|
||||||
|
|
||||||
|
bwipe!
|
||||||
|
set foldmethod&
|
||||||
|
endfor
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! Test_move_folds_around_manual()
|
func! Test_move_folds_around_manual()
|
||||||
|
Loading…
Reference in New Issue
Block a user