Mercurial > vim
comparison src/testdir/test_quickfix.vim @ 14397:19d99d9e670c v8.1.0213
patch 8.1.0213: CTRL-W CR does not work properly in a quickfix window
commit https://github.com/vim/vim/commit/0a08c63da17dfd93ac2885e3f3f8a083a9b3131c
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 25 22:36:52 2018 +0200
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 25 Jul 2018 22:45:04 +0200 |
parents | 932dde1d8a71 |
children | 9df0fcbfebb2 |
comparison
equal
deleted
inserted
replaced
14396:cee68b7551a2 | 14397:19d99d9e670c |
---|---|
3502 call assert_equal([' 2 pqr:pat2: '], | 3502 call assert_equal([' 2 pqr:pat2: '], |
3503 \ split(execute('filter /pqr/ clist'), "\n")) | 3503 \ split(execute('filter /pqr/ clist'), "\n")) |
3504 call assert_equal([' 1 abc:pat1: '], | 3504 call assert_equal([' 1 abc:pat1: '], |
3505 \ split(execute('filter /pat1/ clist'), "\n")) | 3505 \ split(execute('filter /pat1/ clist'), "\n")) |
3506 endfunc | 3506 endfunc |
3507 | |
3508 " Tests for the "CTRL-W <CR>" command. | |
3509 func Xview_result_split_tests(cchar) | |
3510 call s:setup_commands(a:cchar) | |
3511 | |
3512 " Test that "CTRL-W <CR>" in a qf/ll window fails with empty list. | |
3513 call g:Xsetlist([]) | |
3514 Xopen | |
3515 let l:win_count = winnr('$') | |
3516 call assert_fails('execute "normal! \<C-W>\<CR>"', 'E42') | |
3517 call assert_equal(l:win_count, winnr('$')) | |
3518 Xclose | |
3519 endfunc | |
3520 | |
3521 func Test_view_result_split() | |
3522 call Xview_result_split_tests('c') | |
3523 call Xview_result_split_tests('l') | |
3524 endfunc |