comparison src/testdir/test_cmdline.vim @ 20737:0b4a9642b39c v8.2.0921

patch 8.2.0921: CTRL-W T in cmdline window causes trouble Commit: https://github.com/vim/vim/commit/4fdb8bd0546ac8d90560a4fad359a48667089d43 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 7 17:03:21 2020 +0200 patch 8.2.0921: CTRL-W T in cmdline window causes trouble Problem: CTRL-W T in cmdline window causes trouble. Solution: Disallow CTRL-W T in the cmdline window. Add more tests. (Naruhiko Nishino, closes #6219)
author Bram Moolenaar <Bram@vim.org>
date Sun, 07 Jun 2020 17:15:03 +0200
parents abebcc20af26
children fa6f1c97813f
comparison
equal deleted inserted replaced
20736:a1503031ffe6 20737:0b4a9642b39c
1501 call assert_fails('call feedkeys("q:\<C-]>\<CR>", "xt")', 'E11:') 1501 call assert_fails('call feedkeys("q:\<C-]>\<CR>", "xt")', 'E11:')
1502 call assert_fails('call feedkeys("q:\<C-^>\<CR>", "xt")', 'E11:') 1502 call assert_fails('call feedkeys("q:\<C-^>\<CR>", "xt")', 'E11:')
1503 call assert_fails('call feedkeys("q:Q\<CR>", "xt")', 'E11:') 1503 call assert_fails('call feedkeys("q:Q\<CR>", "xt")', 'E11:')
1504 call assert_fails('call feedkeys("q:Z\<CR>", "xt")', 'E11:') 1504 call assert_fails('call feedkeys("q:Z\<CR>", "xt")', 'E11:')
1505 call assert_fails('call feedkeys("q:\<F1>\<CR>", "xt")', 'E11:') 1505 call assert_fails('call feedkeys("q:\<F1>\<CR>", "xt")', 'E11:')
1506 call assert_fails('call feedkeys("q:\<C-W>s", "xt")', 'E11:')
1507 call assert_fails('call feedkeys("q:\<C-W>v", "xt")', 'E11:')
1508 call assert_fails('call feedkeys("q:\<C-W>^", "xt")', 'E11:')
1509 call assert_fails('call feedkeys("q:\<C-W>n", "xt")', 'E11:')
1510 call assert_fails('call feedkeys("q:\<C-W>z", "xt")', 'E11:')
1511 call assert_fails('call feedkeys("q:\<C-W>o", "xt")', 'E11:')
1512 call assert_fails('call feedkeys("q:\<C-W>w", "xt")', 'E11:')
1513 call assert_fails('call feedkeys("q:\<C-W>j", "xt")', 'E11:')
1514 call assert_fails('call feedkeys("q:\<C-W>k", "xt")', 'E11:')
1515 call assert_fails('call feedkeys("q:\<C-W>h", "xt")', 'E11:')
1516 call assert_fails('call feedkeys("q:\<C-W>l", "xt")', 'E11:')
1517 call assert_fails('call feedkeys("q:\<C-W>T", "xt")', 'E11:')
1518 call assert_fails('call feedkeys("q:\<C-W>x", "xt")', 'E11:')
1519 call assert_fails('call feedkeys("q:\<C-W>r", "xt")', 'E11:')
1520 call assert_fails('call feedkeys("q:\<C-W>R", "xt")', 'E11:')
1521 call assert_fails('call feedkeys("q:\<C-W>K", "xt")', 'E11:')
1522 call assert_fails('call feedkeys("q:\<C-W>}", "xt")', 'E11:')
1523 call assert_fails('call feedkeys("q:\<C-W>]", "xt")', 'E11:')
1524 call assert_fails('call feedkeys("q:\<C-W>f", "xt")', 'E11:')
1525 call assert_fails('call feedkeys("q:\<C-W>d", "xt")', 'E11:')
1526 call assert_fails('call feedkeys("q:\<C-W>g", "xt")', 'E11:')
1506 endfunc 1527 endfunc
1507 1528
1508 " Close the Cmd-line window in insert mode using CTRL-C 1529 " Close the Cmd-line window in insert mode using CTRL-C
1509 func Test_cmdwin_insert_mode_close() 1530 func Test_cmdwin_insert_mode_close()
1510 %bw! 1531 %bw!