diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-07-15 10:11:41 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-15 10:50:21 +0800 |
| commit | 465b73c3a5f1debc0c88e0e2d569f8cdebc51b5b (patch) | |
| tree | d57568b30353002faa5e923ca0ffb8ea434797fc /src/nvim/testdir/test_cmdline.vim | |
| parent | c821b5c6955e6e15039298d50641608168159c01 (diff) | |
| download | rneovim-465b73c3a5f1debc0c88e0e2d569f8cdebc51b5b.tar.gz rneovim-465b73c3a5f1debc0c88e0e2d569f8cdebc51b5b.tar.bz2 rneovim-465b73c3a5f1debc0c88e0e2d569f8cdebc51b5b.zip | |
vim-patch:8.2.0482: channel and sandbox code not sufficiently tested
Problem: Channel and sandbox code not sufficiently tested.
Solution: Add more tests. (Yegappan Lakshmanan, closes vim/vim#5855)
https://github.com/vim/vim/commit/ca68ae13114619df3e4c195b41ad0575516f5ff6
Cherry-pick test_clientserver.vim changes form patch 8.2.0448.
Diffstat (limited to 'src/nvim/testdir/test_cmdline.vim')
| -rw-r--r-- | src/nvim/testdir/test_cmdline.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index 441b166410..276bb7fb71 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -1707,6 +1707,15 @@ func Test_cmdwin_blocked_commands() call assert_fails('call feedkeys("q:\<C-W>g\<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 + " test that ";" works to find a match at the start of the first line func Test_zero_line_search() new |