diff 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
line wrap: on
line diff
--- a/src/testdir/test_quickfix.vim
+++ b/src/testdir/test_quickfix.vim
@@ -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)