mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
vim-patch:9.1.1771: complete: some redraw issues with 'autocomplete'
Problem: complete: some redraw issues with 'autocomplete'
Solution: Fix the issues (Girish Palya)
This commit contains the following changes:
* Fix that wildtrigger() might leave opened popupmenu around vim/vim#18298
* Remove blinking message on the command line when a menu item from a loaded
buffer is selected during 'autocomplete'
* Add a test for PR vim/vim#18265 to demonstrate why the PR is required for correct
'autocomplete' behavior
fixes: vim/vim#18298
closes: vim/vim#18328
ee9a2f0512
Co-authored-by: Girish Palya <girishji@gmail.com>
This commit is contained in:
@@ -627,6 +627,35 @@ describe('cmdline', function()
|
||||
|
||||
feed('<Esc>')
|
||||
end)
|
||||
|
||||
-- oldtest: Test_update_screen_after_wildtrigger()
|
||||
it('pum is dismissed after wildtrigger() and whitespace', function()
|
||||
local screen = Screen.new(40, 10)
|
||||
exec([[
|
||||
set wildmode=noselect:lastused,full wildmenu wildoptions=pum
|
||||
autocmd CmdlineChanged : if getcmdcompltype() != 'shellcmd' | call wildtrigger() | endif
|
||||
]])
|
||||
|
||||
feed(':term')
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|*7
|
||||
{4: terminal }{1: }|
|
||||
:term^ |
|
||||
]])
|
||||
feed(' ')
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|*8
|
||||
:term ^ |
|
||||
]])
|
||||
feed('foo')
|
||||
screen:expect([[
|
||||
|
|
||||
{1:~ }|*8
|
||||
:term foo^ |
|
||||
]])
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('cmdwin', function()
|
||||
|
Reference in New Issue
Block a user