diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2023-01-17 12:04:58 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2023-01-17 14:01:26 +0800 |
| commit | 4c127f107a0c930878b4a28dd96c41c505127b5d (patch) | |
| tree | c80ea7e93bf1698bbe2decbdd7e475b931953c6f /src/nvim/testdir | |
| parent | 0c689fec8e7e1c9eb0bcdf84949160cd7caf3fb6 (diff) | |
| download | rneovim-4c127f107a0c930878b4a28dd96c41c505127b5d.tar.gz rneovim-4c127f107a0c930878b4a28dd96c41c505127b5d.tar.bz2 rneovim-4c127f107a0c930878b4a28dd96c41c505127b5d.zip | |
vim-patch:8.2.4475: fuzzy cmdline completion does not work for lower case
Problem: Fuzzy cmdline completion does not work for lower case.
Solution: Also use fuzzy completion for lower case input. (Yegappan
Lakshmanan, closes vim/vim#9849)
https://github.com/vim/vim/commit/4df5b33f206210fec2a0297aea27e7db8b5173c0
Initialize "regmatch" to avoid using uninitialized memory.
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_cmdline.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index f5726c093b..16d99cf4c5 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -2989,6 +2989,18 @@ func Test_wildoptions_fuzzy() delcommand T123FendingOff %bw + " Test for fuzzy completion of a command with lower case letters and a + " number + command Foo2Bar : + set wildoptions=fuzzy + call feedkeys(":foo2\<Tab>\<C-B>\"\<CR>", 'tx') + call assert_equal('"Foo2Bar', @:) + call feedkeys(":foo\<Tab>\<C-B>\"\<CR>", 'tx') + call assert_equal('"Foo2Bar', @:) + call feedkeys(":bar\<Tab>\<C-B>\"\<CR>", 'tx') + call assert_equal('"Foo2Bar', @:) + delcommand Foo2Bar + set wildoptions& %bw! endfunc |