mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +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:
@@ -5053,4 +5053,23 @@ func Test_skip_wildtrigger_hist_navigation()
|
||||
cunmap <Down>
|
||||
endfunc
|
||||
|
||||
" Issue 18298: wildmenu should be dismissed after wildtrigger and whitespace
|
||||
func Test_update_screen_after_wildtrigger()
|
||||
CheckScreendump
|
||||
let lines =<< trim [SCRIPT]
|
||||
call test_override("char_avail", 1)
|
||||
set wildmode=noselect:lastused,full wildmenu wildoptions=pum
|
||||
autocmd CmdlineChanged : if getcmdcompltype() != 'shellcmd' | call wildtrigger() | endif
|
||||
[SCRIPT]
|
||||
call writefile(lines, 'XTest_wildtrigger', 'D')
|
||||
let buf = RunVimInTerminal('-S XTest_wildtrigger', {'rows': 10})
|
||||
|
||||
call term_sendkeys(buf, ":term foo")
|
||||
call TermWait(buf, 50)
|
||||
call VerifyScreenDump(buf, 'Test_update_screen_wildtrigger_1', {})
|
||||
|
||||
call term_sendkeys(buf, "\<esc>")
|
||||
call StopVimInTerminal(buf)
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
Reference in New Issue
Block a user