1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2019-09-15 19:09:42 +02:00
parent 8ae54375ca
commit e00fdf35d0
5 changed files with 58 additions and 2 deletions

View File

@@ -3,6 +3,8 @@
source check.vim
CheckFeature quickfix
source screendump.vim
set encoding=utf-8
func s:setup_commands(cchar)
@@ -2428,6 +2430,30 @@ func Test_cwindow_jump()
set efm&vim
endfunc
func Test_cwindow_highlight()
CheckScreendump
let lines =<< trim END
set t_u7=
call setline(1, ['some', 'text', 'with', 'matches'])
write XCwindow
vimgrep e XCwindow
redraw
cwindow 4
END
call writefile(lines, 'XtestCwindow')
let buf = RunVimInTerminal('-S XtestCwindow', #{rows: 12})
call VerifyScreenDump(buf, 'Test_quickfix_cwindow_1', {})
call term_sendkeys(buf, ":cnext\<CR>")
call VerifyScreenDump(buf, 'Test_quickfix_cwindow_2', {})
" clean up
call StopVimInTerminal(buf)
call delete('XtestCwindow')
call delete('XCwindow')
endfunc
func XvimgrepTests(cchar)
call s:setup_commands(a:cchar)