diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-07-15 11:14:22 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-15 11:14:22 +0800 |
| commit | 9777907467b29e890556db287b6a9995c0024896 (patch) | |
| tree | d57568b30353002faa5e923ca0ffb8ea434797fc /src/nvim/testdir/test_cmdline.vim | |
| parent | 73f96ce4c638179abb0bd5a9dc48a6a1d0f3a5bd (diff) | |
| parent | 465b73c3a5f1debc0c88e0e2d569f8cdebc51b5b (diff) | |
| download | rneovim-9777907467b29e890556db287b6a9995c0024896.tar.gz rneovim-9777907467b29e890556db287b6a9995c0024896.tar.bz2 rneovim-9777907467b29e890556db287b6a9995c0024896.zip | |
Merge pull request #19369 from zeertzjq/vim-8.2.0482
vim-patch:8.2.{0430,0482}: insufficient tests
Diffstat (limited to 'src/nvim/testdir/test_cmdline.vim')
| -rw-r--r-- | src/nvim/testdir/test_cmdline.vim | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index dba0ba7dec..276bb7fb71 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -1652,20 +1652,6 @@ func Test_cmdline_inputmethod() %bwipe! endfunc -" Test for opening the command-line window when too many windows are present -func Test_cmdwin_fail_to_open() - " Open as many windows as possible - for i in range(100) - try - new - catch /E36:/ - break - endtry - endfor - call assert_beeps('call feedkeys("q:\<CR>", "xt")') - only -endfunc - " Test for recursively getting multiple command line inputs func Test_cmdwin_multi_input() call feedkeys(":\<C-R>=input('P: ')\<CR>\"cyan\<CR>\<CR>", 'xt') @@ -1721,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 |