1
0
forked from aniani/vim

patch 8.1.2390: test94 is old style, fix 7.4.441 not tested

Problem:    Test94 is old style, fix 7.4.441 not tested.
Solution:   Turn test94 into a new style test.  Add tests for the fix in patch
            7.4.441. (Yegappan Lakshmanan, closes #5316)
This commit is contained in:
Bram Moolenaar
2019-12-05 18:16:33 +01:00
parent 707d226ac5
commit 309976ec1f
8 changed files with 325 additions and 383 deletions

View File

@@ -848,3 +848,26 @@ func Test_cmdwin_feedkeys()
" This should not generate E488
call feedkeys("q:\<CR>", 'x')
endfunc
" Tests for the issues fixed in 7.4.441.
" When 'cedit' is set to Ctrl-C, opening the command window hangs Vim
func Test_cmdwin_cedit()
exe "set cedit=\<C-c>"
normal! :
call assert_equal(1, winnr('$'))
let g:cmd_wintype = ''
func CmdWinType()
let g:cmd_wintype = getcmdwintype()
return ''
endfunc
call feedkeys("\<C-c>a\<C-R>=CmdWinType()\<CR>\<CR>")
echo input('')
call assert_equal('@', g:cmd_wintype)
set cedit&vim
delfunc CmdWinType
endfunc
" vim: shiftwidth=2 sts=2 expandtab