diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-03-27 08:02:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-27 08:02:45 +0800 |
commit | ce590e207720ec53a4592882840725bf8540c7d5 (patch) | |
tree | 6dc54fcd969c977ad35c02fc6ad3c5ce91f74e27 /test/functional/ui | |
parent | 9acb52c8f386ea0a026ba4e314e1294da66f8e79 (diff) | |
parent | 0af780e8df849f6d393873124afaa31681ab43ec (diff) | |
download | rneovim-ce590e207720ec53a4592882840725bf8540c7d5.tar.gz rneovim-ce590e207720ec53a4592882840725bf8540c7d5.tar.bz2 rneovim-ce590e207720ec53a4592882840725bf8540c7d5.zip |
Merge pull request #30189 from zeertzjq/vim-9.1.0598
vim-patch: 'completefuzzycollect' option
Diffstat (limited to 'test/functional/ui')
-rw-r--r-- | test/functional/ui/popupmenu_spec.lua | 49 |
1 files changed, 39 insertions, 10 deletions
diff --git a/test/functional/ui/popupmenu_spec.lua b/test/functional/ui/popupmenu_spec.lua index 728f8ed3d0..9403f39ba1 100644 --- a/test/functional/ui/popupmenu_spec.lua +++ b/test/functional/ui/popupmenu_spec.lua @@ -6932,29 +6932,58 @@ describe('builtin popupmenu', function() ]]) feed('o<BS><C-R>=Comp()<CR>') screen:expect_unchanged(true) + feed('<C-E><Esc>') + + command('hi PmenuMatchSel guibg=NONE') + command('hi PmenuMatch guibg=NONE') + command('set cot=menu,noinsert,fuzzy') + feed('S<C-X><C-O>') + screen:expect(pum_start) + feed('fb') + screen:expect([[ + fb^ | + {ms:f}{s:oo}{ms:B}{s:az fookind }{1: }| + {mn:f}{n:oo}{mn:b}{n:ar fookind }{1: }| + {mn:f}{n:oo}{mn:b}{n:ala fookind }{1: }| + {1:~ }|*15 + {2:-- }{5:match 1 of 9} | + ]]) + + feed('<C-E><Esc>') + end) + + it('completefuzzycollect', function() + exec([[ + set completefuzzycollect=keyword,files + set completeopt=menu,menuone + ]]) - 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: }| + hello helio hero hello^ | + {1:~ }{n: hero }{1: }| + {1:~ }{n: helio }{1: }| + {1:~ }{s: hello }{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: }| + hello helio hero helio^ | + {1:~ }{n: hero }{1: }| + {1:~ }{s: helio }{1: }| + {1:~ }{n: hello }{1: }| {1:~ }|*15 {2:-- }{5:match 2 of 3} | ]]) + feed('<Esc>S/non_existing_folder<C-X><C-F>') + screen:expect([[ + /non_existing_folder^ | + {1:~ }|*18 + {2:-- }{6:Pattern not found} | + ]]) feed('<C-E><Esc>') end) |