From 0666b23d65c6dd6880166db0d2ed6a150b0554d0 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Fri, 22 May 2020 19:59:28 -0400 Subject: vim-patch:8.2.0810: error when appending "tagfile" to 'wildoptions' Problem: Error when appending "tagfile" to 'wildoptions'. Solution: use flags P_ONECOMMA and P_NODUP. (Dmitri Vereshchagin, closes vim/vim#6105) https://github.com/vim/vim/commit/2e61e2d08390623fcf933fd06646ac91f81fb772 --- src/nvim/testdir/test_options.vim | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim index 41f1710faf..400af33c58 100644 --- a/src/nvim/testdir/test_options.vim +++ b/src/nvim/testdir/test_options.vim @@ -42,6 +42,13 @@ function Test_wildchar() set wildchar& endfunction +func Test_wildoptions() + set wildoptions= + set wildoptions+=tagfile + set wildoptions+=tagfile + call assert_equal('tagfile', &wildoptions) +endfunc + function! Test_options() let caught = 'ok' try -- cgit