diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-05-07 08:00:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-07 08:00:08 +0800 |
commit | fa1baa9a47cdb3eed17d48b6011a164d4009d2ee (patch) | |
tree | 81a4bf4ff96afbe6b04de4c8a2463e9e25565c7f /test/old/testdir/test_options.vim | |
parent | 9e34aa76c132b5637ed2f2dafa4487f4c850bf35 (diff) | |
download | rneovim-fa1baa9a47cdb3eed17d48b6011a164d4009d2ee.tar.gz rneovim-fa1baa9a47cdb3eed17d48b6011a164d4009d2ee.tar.bz2 rneovim-fa1baa9a47cdb3eed17d48b6011a164d4009d2ee.zip |
vim-patch:9.0.1520: completion for option name includes all bool options (#23518)
Problem: Completion for option name includes all bool options.
Solution: Do not recognize the "noinv" prefix. Prefix "no" or "inv" when
appropriate.
https://github.com/vim/vim/commit/048d9d25214049dfde04c468c14bd1708fb692b8
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/old/testdir/test_options.vim')
-rw-r--r-- | test/old/testdir/test_options.vim | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/old/testdir/test_options.vim b/test/old/testdir/test_options.vim index cf8bf1903f..ada44e5eed 100644 --- a/test/old/testdir/test_options.vim +++ b/test/old/testdir/test_options.vim @@ -282,13 +282,17 @@ func Test_set_completion() call feedkeys(":setglobal di\<C-A>\<C-B>\"\<CR>", 'tx') call assert_equal('"setglobal dictionary diff diffexpr diffopt digraph directory display', @:) - " Expand boolean options. When doing :set no<Tab> - " vim displays the options names without "no" but completion uses "no...". + " Expand boolean options. When doing :set no<Tab> Vim prefixes the option + " names with "no". call feedkeys(":set nodi\<C-A>\<C-B>\"\<CR>", 'tx') - call assert_equal('"set nodiff digraph', @:) + call assert_equal('"set nodiff nodigraph', @:) call feedkeys(":set invdi\<C-A>\<C-B>\"\<CR>", 'tx') - call assert_equal('"set invdiff digraph', @:) + call assert_equal('"set invdiff invdigraph', @:) + + " Expanding "set noinv" does nothing. + call feedkeys(":set noinv\<C-A>\<C-B>\"\<CR>", 'tx') + call assert_equal('"set noinv', @:) " Expand abbreviation of options. call feedkeys(":set ts\<C-A>\<C-B>\"\<CR>", 'tx') |