diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-11 23:16:16 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-12 00:22:16 -0400 |
| commit | 22d58ab66459c4c38f7117902b9498f81b4edfe5 (patch) | |
| tree | dd781338bd334c3deae9c68fecaadb7773eb77ae /src/nvim/testdir | |
| parent | 005316ae41a03e75fac37a4892e2b8efde2f8b57 (diff) | |
| download | rneovim-22d58ab66459c4c38f7117902b9498f81b4edfe5.tar.gz rneovim-22d58ab66459c4c38f7117902b9498f81b4edfe5.tar.bz2 rneovim-22d58ab66459c4c38f7117902b9498f81b4edfe5.zip | |
vim-patch:8.1.0213: CTRL-W CR does not work properly in a quickfix window
Problem: CTRL-W CR does not work properly in a quickfix window.
Solution: Split the window if needed. (Jason Franklin)
https://github.com/vim/vim/commit/0a08c63da17dfd93ac2885e3f3f8a083a9b3131c
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_quickfix.vim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim index 16fb86ea08..fcb02d3437 100644 --- a/src/nvim/testdir/test_quickfix.vim +++ b/src/nvim/testdir/test_quickfix.vim @@ -3372,3 +3372,21 @@ func Test_lbuffer_with_bwipe() au! augroup END endfunc + +" Tests for the "CTRL-W <CR>" command. +func Xview_result_split_tests(cchar) + call s:setup_commands(a:cchar) + + " Test that "CTRL-W <CR>" in a qf/ll window fails with empty list. + call g:Xsetlist([]) + Xopen + let l:win_count = winnr('$') + call assert_fails('execute "normal! \<C-W>\<CR>"', 'E42') + call assert_equal(l:win_count, winnr('$')) + Xclose +endfunc + +func Test_view_result_split() + call Xview_result_split_tests('c') + call Xview_result_split_tests('l') +endfunc |