comparison src/testdir/test_quickfix.vim @ 18090:a6c74689fb97 v8.1.2040

patch 8.1.2040: no highlighting of current line in quickfix window Commit: https://github.com/vim/vim/commit/e00fdf35d069de4effe07125333bb9ff35b1915d Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 15 19:09:42 2019 +0200 patch 8.1.2040: no highlighting of current line in quickfix window Problem: No highlighting of current line in quickfix window. Solution: Combine with line_attr.
author Bram Moolenaar <Bram@vim.org>
date Sun, 15 Sep 2019 19:15:03 +0200
parents 8a2fb21c23c0
children 4cc8a1a134fc
comparison
equal deleted inserted replaced
18089:72312a8d592d 18090:a6c74689fb97
1 " Test for the quickfix feature. 1 " Test for the quickfix feature.
2 2
3 source check.vim 3 source check.vim
4 CheckFeature quickfix 4 CheckFeature quickfix
5
6 source screendump.vim
5 7
6 set encoding=utf-8 8 set encoding=utf-8
7 9
8 func s:setup_commands(cchar) 10 func s:setup_commands(cchar)
9 if a:cchar == 'c' 11 if a:cchar == 'c'
2426 2428
2427 enew | only 2429 enew | only
2428 set efm&vim 2430 set efm&vim
2429 endfunc 2431 endfunc
2430 2432
2433 func Test_cwindow_highlight()
2434 CheckScreendump
2435
2436 let lines =<< trim END
2437 set t_u7=
2438 call setline(1, ['some', 'text', 'with', 'matches'])
2439 write XCwindow
2440 vimgrep e XCwindow
2441 redraw
2442 cwindow 4
2443 END
2444 call writefile(lines, 'XtestCwindow')
2445 let buf = RunVimInTerminal('-S XtestCwindow', #{rows: 12})
2446 call VerifyScreenDump(buf, 'Test_quickfix_cwindow_1', {})
2447
2448 call term_sendkeys(buf, ":cnext\<CR>")
2449 call VerifyScreenDump(buf, 'Test_quickfix_cwindow_2', {})
2450
2451 " clean up
2452 call StopVimInTerminal(buf)
2453 call delete('XtestCwindow')
2454 call delete('XCwindow')
2455 endfunc
2456
2431 func XvimgrepTests(cchar) 2457 func XvimgrepTests(cchar)
2432 call s:setup_commands(a:cchar) 2458 call s:setup_commands(a:cchar)
2433 2459
2434 call writefile(['Editor:VIM vim', 2460 call writefile(['Editor:VIM vim',
2435 \ 'Editor:Emacs EmAcS', 2461 \ 'Editor:Emacs EmAcS',