mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 10:56:31 +00:00
vim-patch:9.1.1819: Cannot configure the inner foldlevel indicator (#36010)
Problem: Cannot configure the inner foldlevel indicator for the
foldcolumn
Solution: Add "foldinner" suboption value to the 'fillchar' option
(Maria José Solano).
closes: vim/vim#18365
1a691afd27
Co-authored-by: Maria José Solano <majosolano99@gmail.com>
This commit is contained in:
@@ -343,6 +343,32 @@ func Test_fold_fillchars()
|
||||
\ ]
|
||||
call assert_equal(expected, lines)
|
||||
|
||||
" check setting foldinner
|
||||
set fdc=1 foldmethod=indent foldlevel=10
|
||||
call setline(1, ['one', ' two', ' two', ' three', ' three', 'four'])
|
||||
let lines = ScreenLines([1, 6], 22)
|
||||
let expected = [
|
||||
\ ' one ',
|
||||
\ '[ two ',
|
||||
\ '- two ',
|
||||
\ '[ three',
|
||||
\ '2 three',
|
||||
\ ' four ',
|
||||
\ ]
|
||||
call assert_equal(expected, lines)
|
||||
|
||||
set fillchars+=foldinner:\
|
||||
let lines = ScreenLines([1, 6], 22)
|
||||
let expected = [
|
||||
\ ' one ',
|
||||
\ '[ two ',
|
||||
\ '- two ',
|
||||
\ '[ three',
|
||||
\ ' three',
|
||||
\ ' four ',
|
||||
\ ]
|
||||
call assert_equal(expected, lines)
|
||||
|
||||
%bw!
|
||||
set fillchars& fdc& foldmethod& foldenable&
|
||||
endfunc
|
||||
|
Reference in New Issue
Block a user