diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-03-30 19:32:53 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-03-30 19:32:53 +0200 |
commit | ca68ae13114619df3e4c195b41ad0575516f5ff6 (patch) | |
tree | 9022b7f5f1c8bb1ab22660530244414e9b6cdd99 /src/testdir/test_cmdline.vim | |
parent | 7d333a900d260b8e8caa0fb159c85023fc8795bd (diff) |
patch 8.2.0482: channel and sandbox code not sufficiently testedv8.2.0482
Problem: Channel and sandbox code not sufficiently tested.
Solution: Add more tests. (Yegappan Lakshmanan, closes #5855)
Diffstat (limited to 'src/testdir/test_cmdline.vim')
-rw-r--r-- | src/testdir/test_cmdline.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim index 9a2c3a3513..e2b7fc298f 100644 --- a/src/testdir/test_cmdline.vim +++ b/src/testdir/test_cmdline.vim @@ -1459,4 +1459,13 @@ func Test_cmdwin_blocked_commands() call assert_fails('call feedkeys("q:\<F1>\<CR>", "xt")', 'E11:') endfunc +" Close the Cmd-line window in insert mode using CTRL-C +func Test_cmdwin_insert_mode_close() + %bw! + let s = '' + exe "normal q:a\<C-C>let s='Hello'\<CR>" + call assert_equal('Hello', s) + call assert_equal(1, winnr('$')) +endfunc + " vim: shiftwidth=2 sts=2 expandtab |