diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2018-12-08 08:21:49 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-12-08 14:21:49 +0100 |
commit | f1eb25f0c45d7612d495f2cbd43a29da294d5325 (patch) | |
tree | 2fb9e67d3c49e4dc1acce5b1faae0a07b16ca96e /src/nvim/testdir | |
parent | bd97577954d79b8cfba6022a94eb5b55e5a6a689 (diff) | |
download | rneovim-f1eb25f0c45d7612d495f2cbd43a29da294d5325.tar.gz rneovim-f1eb25f0c45d7612d495f2cbd43a29da294d5325.tar.bz2 rneovim-f1eb25f0c45d7612d495f2cbd43a29da294d5325.zip |
vim-patch:8.1.0570: 'commentstring' not used when adding fold marker (#9331)
Problem: 'commentstring' not used when adding fold marker. (Maxim Kim)
Solution: Only use empty 'comments' middle when leader is empty. (Christian
Brabandt, closes vim/vim#3670)
https://github.com/vim/vim/commit/539328197c51c1586cbbb6b6be3db3c412249b49
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_fold.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_fold.vim b/src/nvim/testdir/test_fold.vim index b6a545f959..85f58ada7e 100644 --- a/src/nvim/testdir/test_fold.vim +++ b/src/nvim/testdir/test_fold.vim @@ -674,3 +674,20 @@ func Test_fold_last_line_with_pagedown() set fdm& enew! endfunc + +func Test_folds_marker_in_comment2() + new + call setline(1, ['Lorem ipsum dolor sit', 'Lorem ipsum dolor sit', 'Lorem ipsum dolor sit']) + setl fen fdm=marker + setl commentstring=<!--%s--> + setl comments=s:<!--,m:\ \ \ \ ,e:--> + norm! zf2j + setl nofen + :1y + call assert_equal(['Lorem ipsum dolor sit<!--{{{-->'], getreg(0,1,1)) + :+2y + call assert_equal(['Lorem ipsum dolor sit<!--}}}-->'], getreg(0,1,1)) + + set foldmethod& + bwipe! +endfunc |