diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2023-10-01 18:20:20 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2023-10-01 20:00:23 +0800 |
| commit | 81be8407681cee350984299e1be03d4351e7bd14 (patch) | |
| tree | 1118229cb0b1d663ebb661fb81cc1b9a0a035c7f /test | |
| parent | 6a7d533444f3643c673812c2de46f9b3ee47ba18 (diff) | |
| download | rneovim-81be8407681cee350984299e1be03d4351e7bd14.tar.gz rneovim-81be8407681cee350984299e1be03d4351e7bd14.tar.bz2 rneovim-81be8407681cee350984299e1be03d4351e7bd14.zip | |
vim-patch:9.0.1961: 'listchars' completion misses "multispace" and "leadmultispace"
Problem: Cmdline completion for 'listchars' fields doesn't include
"multispace" and "leadmultispace" (after 9.0.1958).
Solution: Include "multispace" and "leadmultispace" in lcstab.
closes: vim/vim#13225
https://github.com/vim/vim/commit/1f025b01e29be6fce907d0379602b45031d6998f
Diffstat (limited to 'test')
| -rw-r--r-- | test/old/testdir/test_options.vim | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/old/testdir/test_options.vim b/test/old/testdir/test_options.vim index d36e913a30..9068546c3e 100644 --- a/test/old/testdir/test_options.vim +++ b/test/old/testdir/test_options.vim @@ -527,10 +527,12 @@ func Test_set_completion_string_values() " call assert_equal(getcompletion('set printoptions=', 'cmdline')[0], 'top') " call assert_equal(getcompletion('set wincolor=', 'cmdline')[0], 'SpecialKey') - call assert_equal(getcompletion('set listchars+=', 'cmdline')[0], 'eol') - call assert_equal(getcompletion('setl listchars+=', 'cmdline')[0], 'eol') - call assert_equal(getcompletion('set fillchars+=', 'cmdline')[0], 'stl') - call assert_equal(getcompletion('setl fillchars+=', 'cmdline')[0], 'stl') + call assert_equal('eol', getcompletion('set listchars+=', 'cmdline')[0]) + call assert_equal(['multispace', 'leadmultispace'], getcompletion('set listchars+=', 'cmdline')[-2:]) + call assert_equal('eol', getcompletion('setl listchars+=', 'cmdline')[0]) + call assert_equal(['multispace', 'leadmultispace'], getcompletion('setl listchars+=', 'cmdline')[-2:]) + call assert_equal('stl', getcompletion('set fillchars+=', 'cmdline')[0]) + call assert_equal('stl', getcompletion('setl fillchars+=', 'cmdline')[0]) " " Unique string options below |