diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-12-24 19:34:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-24 19:34:47 +0800 |
commit | f8df96d276123191277e5b7f3a4d00e94c7a21f3 (patch) | |
tree | c11ee779339cf9b3b00ec3588a4ab16bcf46476d /test/functional | |
parent | 34cd94812d42bb6b9ddd54229eb497f660736b4d (diff) | |
parent | 05eca4c04d4d2cc6ad3a2af69d76085135e9b16c (diff) | |
download | rneovim-f8df96d276123191277e5b7f3a4d00e94c7a21f3.tar.gz rneovim-f8df96d276123191277e5b7f3a4d00e94c7a21f3.tar.bz2 rneovim-f8df96d276123191277e5b7f3a4d00e94c7a21f3.zip |
Merge pull request #31713 from glepnir/vim-9.1.0954
vim-patch:9.1.{0954,0956}
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/ui/popupmenu_spec.lua | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/test/functional/ui/popupmenu_spec.lua b/test/functional/ui/popupmenu_spec.lua index 75421c6998..d1228d3607 100644 --- a/test/functional/ui/popupmenu_spec.lua +++ b/test/functional/ui/popupmenu_spec.lua @@ -5567,11 +5567,15 @@ describe('builtin popupmenu', function() -- oldtest: Test_pum_matchins_highlight() it('with ComplMatchIns highlight', function() exec([[ + let g:change = 0 func Omni_test(findstart, base) if a:findstart return col(".") endif - return [#{word: "foo"}, #{word: "bar"}, #{word: "你好"}] + if g:change == 0 + return [#{word: "foo"}, #{word: "bar"}, #{word: "你好"}] + endif + return [#{word: "foo", info: "info"}, #{word: "bar"}, #{word: "你好"}] endfunc set omnifunc=Omni_test hi ComplMatchIns guifg=red @@ -5663,6 +5667,21 @@ describe('builtin popupmenu', function() {2:-- INSERT --} | ]]) feed('<Esc>') + + feed(':let g:change=1<CR>S<C-X><C-O>') + screen:expect([[ + info | + {1:~ }|*2 + {3:[Scratch] [Preview] }| + {8:foo}^ | + {s:foo }{1: }| + {n:bar }{1: }| + {n:你好 }{1: }| + {1:~ }|*10 + {4:[No Name] [+] }| + {2:-- }{5:match 1 of 3} | + ]]) + feed('<Esc>') end) -- oldtest: Test_pum_matchins_highlight_combine() |