diff src/testdir/test_quickfix.vim @ 7710:bf58e9f8d52a v7.4.1153

commit https://github.com/vim/vim/commit/6920c72d4d62c8dc5596e9f392e38204f561d7af Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 22 22:44:10 2016 +0100 patch 7.4.1153 Problem: Autocommands triggered by quickfix cannot always get the current title value. Solution: Call qf_fill_buffer() later. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Fri, 22 Jan 2016 22:45:05 +0100
parents 85a7a945fb87
children 22aecf80378e
line wrap: on
line diff
--- a/src/testdir/test_quickfix.vim
+++ b/src/testdir/test_quickfix.vim
@@ -302,3 +302,17 @@ function Test_helpgrep()
   cclose
 endfunc
 
+func Test_errortitle()
+  augroup QfBufWinEnter
+    au!
+    au BufWinEnter * :let g:a=get(w:, 'quickfix_title', 'NONE')
+  augroup END
+  copen
+  let a=[{'lnum': 308, 'bufnr': bufnr(''), 'col': 58, 'valid': 1, 'vcol': 0, 'nr': 0, 'type': '', 'pattern': '', 'text': '    au BufWinEnter * :let g:a=get(w:, ''quickfix_title'', ''NONE'')'}]
+  call setqflist(a)
+  call assert_equal(':setqflist()', g:a)
+  augroup QfBufWinEnter
+    au!
+  augroup END
+  augroup! QfBufWinEnter
+endfunc