func Test_wildtrigger_update_screen()
CheckScreendump
+
let lines =<< trim [SCRIPT]
command! -nargs=* -complete=customlist,TestFn TestCmd echo
func TestFn(cmdarg, b, c)
call term_sendkeys(buf, "\<esc>")
call StopVimInTerminal(buf)
- cnoremap <buffer> <F8> <C-R>=wildtrigger()[-1]<CR>
endfunc
" Issue #17969: With 'noselect', the popup menu should appear next to the
" file paths when 'noselect' is present.
func Test_noselect_expand_env_var()
CheckScreendump
+
let lines =<< trim [SCRIPT]
set wildmenu wildoptions=pum wildmode=noselect,full
let $TESTDIR = 'a/b'
call term_sendkeys(buf, "\<C-P>")
call VerifyScreenDump(buf, 'Test_expand_env_var_1', {})
+
" clean up
call term_sendkeys(buf, "\<Esc>")
call StopVimInTerminal(buf)
" 'wildmode' contains 'noselect'
func Test_long_line_noselect()
CheckScreendump
+
let lines =<< trim [SCRIPT]
set wildmenu wildoptions=pum wildmode=noselect,full
command -nargs=1 -complete=custom,Entries DoubleEntry echo
call term_sendkeys(buf, "\<Esc>:DoubleEntry \<Tab>\<C-N>\<C-N>")
call VerifyScreenDump(buf, 'Test_long_line_noselect_3', {})
+
" clean up
call term_sendkeys(buf, "\<Esc>")
call StopVimInTerminal(buf)