diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-01-12 08:04:25 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-12 08:04:25 +0800 |
| commit | 37316fbac641ecafde29fd750a08ece490d209c1 (patch) | |
| tree | 358e39e1a84a00bc4d033091407b08839d3a4748 /test/old/testdir | |
| parent | 88dca6a83593a0cf33866addf36cad2e847a2899 (diff) | |
| download | rneovim-37316fbac641ecafde29fd750a08ece490d209c1.tar.gz rneovim-37316fbac641ecafde29fd750a08ece490d209c1.tar.bz2 rneovim-37316fbac641ecafde29fd750a08ece490d209c1.zip | |
vim-patch:9.1.1005: completion text is highlighted even with no pattern found (#31973)
Problem: completion text is highlighted even with no pattern found
Solution: use ins_compl_leader_len() instead of checking
compl_leader.length (glepnir)
closes: vim/vim#16422
https://github.com/vim/vim/commit/9fddb8ae770be3e16545dd4c2f4cfaad8f62cb40
Co-authored-by: glepnir <glephunter@gmail.com>
Diffstat (limited to 'test/old/testdir')
| -rw-r--r-- | test/old/testdir/test_popup.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/old/testdir/test_popup.vim b/test/old/testdir/test_popup.vim index 7f570182e4..31cfc2d096 100644 --- a/test/old/testdir/test_popup.vim +++ b/test/old/testdir/test_popup.vim @@ -1830,6 +1830,13 @@ func Test_pum_matchins_highlight_combine() call term_sendkeys(buf, "S\<C-X>\<C-O>f\<C-N>") call VerifyScreenDump(buf, 'Test_pum_matchins_combine_08', {}) call term_sendkeys(buf, "\<C-E>\<Esc>") + call TermWait(buf) + + call term_sendkeys(buf, ":set cot-=fuzzy\<CR>") + call TermWait(buf) + call term_sendkeys(buf, "Sf\<C-N>") + call VerifyScreenDump(buf, 'Test_pum_matchins_combine_09', {}) + call term_sendkeys(buf, "\<C-E>\<Esc>") call StopVimInTerminal(buf) endfunc |