diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-11-25 22:48:53 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-25 22:48:53 -0500 |
| commit | 4537ff659efbc65f4c94b88cce8fb3c39d03aae5 (patch) | |
| tree | 50dc58f07bc9f3b05b1635fac63aff30e9d23e1e /src/nvim/testdir/test_cmdline.vim | |
| parent | dd00c74737241945187e3e0b939d289af25e505e (diff) | |
| parent | fe5dc266483aa4878b30ecc660b5401648545f27 (diff) | |
| download | rneovim-4537ff659efbc65f4c94b88cce8fb3c39d03aae5.tar.gz rneovim-4537ff659efbc65f4c94b88cce8fb3c39d03aae5.tar.bz2 rneovim-4537ff659efbc65f4c94b88cce8fb3c39d03aae5.zip | |
Merge pull request #13375 from janlazo/vim-8.2.2041
vim-patch:8.1.{2290,2390},8.2.{242,257,302,303,462,991,996,2041,2042,2043,2047,2048,2049,2054}
Diffstat (limited to 'src/nvim/testdir/test_cmdline.vim')
| -rw-r--r-- | src/nvim/testdir/test_cmdline.vim | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index e3c42a4fe3..81f653c393 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -796,6 +796,29 @@ func Test_cmdwin_feedkeys() 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() + let g:wintype = win_gettype() + return '' + endfunc + + call feedkeys("\<C-c>a\<C-R>=CmdWinType()\<CR>\<CR>") + echo input('') + call assert_equal('@', g:cmd_wintype) + call assert_equal('command', g:wintype) + + set cedit&vim + delfunc CmdWinType +endfunc + func Test_buffers_lastused() " check that buffers are sorted by time when wildmode has lastused edit bufc " oldest |