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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user