diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-07-06 22:44:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-06 22:44:37 +0800 |
commit | 7a54d707fa6f32822b241140b31a348ad5ad0e6b (patch) | |
tree | c43afed3083035411de2f85504d38896ed91b57e /test/functional/ui/popupmenu_spec.lua | |
parent | bdc6e38781321895331057cbcfb099f8ad31e6db (diff) | |
download | rneovim-7a54d707fa6f32822b241140b31a348ad5ad0e6b.tar.gz rneovim-7a54d707fa6f32822b241140b31a348ad5ad0e6b.tar.bz2 rneovim-7a54d707fa6f32822b241140b31a348ad5ad0e6b.zip |
vim-patch:9.1.0534: completion wrong with fuzzy when cycling back to original (#29588)
Problem: completion wrong with fuzzy when cycling back to original
(Quan Nguyen)
Solution: reset show_match_ok when cp_score is zero (glepnir)
fixes: vim/vim#15095
closes: vim/vim#15105
https://github.com/vim/vim/commit/65407ce1d2963e7a758af8fecdcbd67b9a90bdb9
Co-authored-by: glepnir <glephunter@gmail.com>
Diffstat (limited to 'test/functional/ui/popupmenu_spec.lua')
-rw-r--r-- | test/functional/ui/popupmenu_spec.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/functional/ui/popupmenu_spec.lua b/test/functional/ui/popupmenu_spec.lua index a1a21eb317..db2ee7ff29 100644 --- a/test/functional/ui/popupmenu_spec.lua +++ b/test/functional/ui/popupmenu_spec.lua @@ -4905,6 +4905,28 @@ describe('builtin popupmenu', function() feed('o<BS><C-R>=Comp()<CR>') screen:expect_unchanged(true) + feed('<Esc>') + command('set completeopt+=fuzzy,menu') + feed('S hello helio hero h<C-X><C-P>') + screen:expect([[ + hello helio hero h^ | + {1:~ }{n: }{mn:h}{n:ello }{1: }| + {1:~ }{n: }{mn:h}{n:elio }{1: }| + {1:~ }{s: }{ms:h}{s:ero }{1: }| + {1:~ }|*15 + {2:-- }{5:match 1 of 3} | + ]]) + + feed('<Esc>S hello helio hero h<C-X><C-P><C-P>') + screen:expect([[ + hello helio hero h^ | + {1:~ }{n: }{mn:h}{n:ello }{1: }| + {1:~ }{s: }{ms:h}{s:elio }{1: }| + {1:~ }{n: }{mn:h}{n:ero }{1: }| + {1:~ }|*15 + {2:-- }{5:match 2 of 3} | + ]]) + feed('<C-E><Esc>') end) end |