summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_cmdline.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-12-05 18:16:33 +0100
committerBram Moolenaar <Bram@vim.org>2019-12-05 18:16:33 +0100
commit309976ec1f033c68480bbc8cc363db5b5ea944f9 (patch)
treeeb545ed4d4aec0f711bd82b30f6cd733a04d2ced /src/testdir/test_cmdline.vim
parent707d226ac58da752ecc6b7620055fb1df3957a27 (diff)
patch 8.1.2390: test94 is old style, fix 7.4.441 not testedv8.1.2390
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)
Diffstat (limited to 'src/testdir/test_cmdline.vim')
-rw-r--r--src/testdir/test_cmdline.vim23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim
index 5e25979302..529795144b 100644
--- a/src/testdir/test_cmdline.vim
+++ b/src/testdir/test_cmdline.vim
@@ -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