Skip to content

Commit

Permalink
patch 8.2.0921: CTRL-W T in cmdline window causes trouble
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
brammool committed Jun 7, 2020
1 parent 5b157fe commit 4fdb8bd
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/testdir/test_cmdline.vim
Expand Up @@ -1503,6 +1503,27 @@ func Test_cmdwin_blocked_commands()
call assert_fails('call feedkeys("q:Q\<CR>", "xt")', 'E11:')
call assert_fails('call feedkeys("q:Z\<CR>", "xt")', 'E11:')
call assert_fails('call feedkeys("q:\<F1>\<CR>", "xt")', 'E11:')
call assert_fails('call feedkeys("q:\<C-W>s", "xt")', 'E11:')
call assert_fails('call feedkeys("q:\<C-W>v", "xt")', 'E11:')
call assert_fails('call feedkeys("q:\<C-W>^", "xt")', 'E11:')
call assert_fails('call feedkeys("q:\<C-W>n", "xt")', 'E11:')
call assert_fails('call feedkeys("q:\<C-W>z", "xt")', 'E11:')
call assert_fails('call feedkeys("q:\<C-W>o", "xt")', 'E11:')
call assert_fails('call feedkeys("q:\<C-W>w", "xt")', 'E11:')
call assert_fails('call feedkeys("q:\<C-W>j", "xt")', 'E11:')
call assert_fails('call feedkeys("q:\<C-W>k", "xt")', 'E11:')
call assert_fails('call feedkeys("q:\<C-W>h", "xt")', 'E11:')
call assert_fails('call feedkeys("q:\<C-W>l", "xt")', 'E11:')
call assert_fails('call feedkeys("q:\<C-W>T", "xt")', 'E11:')
call assert_fails('call feedkeys("q:\<C-W>x", "xt")', 'E11:')
call assert_fails('call feedkeys("q:\<C-W>r", "xt")', 'E11:')
call assert_fails('call feedkeys("q:\<C-W>R", "xt")', 'E11:')
call assert_fails('call feedkeys("q:\<C-W>K", "xt")', 'E11:')
call assert_fails('call feedkeys("q:\<C-W>}", "xt")', 'E11:')
call assert_fails('call feedkeys("q:\<C-W>]", "xt")', 'E11:')
call assert_fails('call feedkeys("q:\<C-W>f", "xt")', 'E11:')
call assert_fails('call feedkeys("q:\<C-W>d", "xt")', 'E11:')
call assert_fails('call feedkeys("q:\<C-W>g", "xt")', 'E11:')
endfunc

" Close the Cmd-line window in insert mode using CTRL-C
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -754,6 +754,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
921,
/**/
920,
/**/
Expand Down
1 change: 1 addition & 0 deletions src/window.c
Expand Up @@ -340,6 +340,7 @@ do_window(

// move window to new tab page
case 'T':
CHECK_CMDWIN;
if (one_window())
msg(_(m_onlyone));
else
Expand Down

0 comments on commit 4fdb8bd

Please sign in to comment.