comparison src/testdir/test_ins_complete.vim @ 17468:fa6c9047ec70 v8.1.1732

patch 8.1.1732: completion in cmdwin does not work for buffer-local commands commit https://github.com/vim/vim/commit/f03e328348f87e1fe8ce4aad2a6a4237b9f78ce3 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jul 22 21:55:18 2019 +0200 patch 8.1.1732: completion in cmdwin does not work for buffer-local commands Problem: Completion in cmdwin does not work for buffer-local commands. Solution: Use the right buffer. (closes https://github.com/vim/vim/issues/4711)
author Bram Moolenaar <Bram@vim.org>
date Mon, 22 Jul 2019 22:00:05 +0200
parents 749a7c03de8d
children 77c3f6428b6c
comparison
equal deleted inserted replaced
17467:ed03a1fb37ce 17468:fa6c9047ec70
311 call feedkeys("ajump ju\<C-X>\<C-N>\<C-P>\<ESC>", "tx") 311 call feedkeys("ajump ju\<C-X>\<C-N>\<C-P>\<ESC>", "tx")
312 call assert_equal("jump jump", getline(1)) 312 call assert_equal("jump jump", getline(1))
313 bwipe! 313 bwipe!
314 set completeopt& 314 set completeopt&
315 endfunc 315 endfunc
316
317 func Test_compl_in_cmdwin()
318 set wildmenu wildchar=<Tab>
319 com! -nargs=1 -complete=command GetInput let input = <q-args>
320 com! -buffer TestCommand echo 'TestCommand'
321
322 let input = ''
323 call feedkeys("q:iGetInput T\<C-x>\<C-v>\<CR>", 'tx!')
324 call assert_equal('TestCommand', input)
325
326 let input = ''
327 call feedkeys("q::GetInput T\<Tab>\<CR>:q\<CR>", 'tx!')
328 call assert_equal('T', input)
329
330 delcom TestCommand
331 delcom GetInput
332 set wildmenu& wildchar&
333 endfunc