comparison src/testdir/test_quickfix.vim @ 22645:13904ca59f96 v8.2.1871

patch 8.2.1871: using %v in 'errorformat' may fail before %Z Commit: https://github.com/vim/vim/commit/c95940c06a125d3afe6516f11f8b2f5697a6b3b9 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 20 14:59:12 2020 +0200 patch 8.2.1871: using %v in 'errorformat' may fail before %Z Problem: Using %v in 'errorformat' may fail before %Z. Solution: Set qf_viscol only when qf_col is set. (closes https://github.com/vim/vim/issues/7169)
author Bram Moolenaar <Bram@vim.org>
date Tue, 20 Oct 2020 15:00:04 +0200
parents 849c6f766b19
children c8a4ad051d23
comparison
equal deleted inserted replaced
22644:1b7f6ac87280 22645:13904ca59f96
4417 cnext 4417 cnext
4418 call assert_equal([11, 17], [col('.'), virtcol('.')]) 4418 call assert_equal([11, 17], [col('.'), virtcol('.')])
4419 cnext 4419 cnext
4420 call assert_equal([16, 25], [col('.'), virtcol('.')]) 4420 call assert_equal([16, 25], [col('.'), virtcol('.')])
4421 4421
4422 " Use screen column number with a multi-line error message
4423 enew
4424 call writefile(["à test"], 'Xfile1')
4425 set efm=%E===\ %f\ ===,%C%l:%v,%Z%m
4426 cexpr ["=== Xfile1 ===", "1:3", "errormsg"]
4427 call assert_equal('Xfile1', @%)
4428 call assert_equal([0, 1, 4, 0], getpos('.'))
4429
4430 " Repeat previous test with byte offset %c: ensure that fix to issue #7145
4431 " does not break this
4432 set efm=%E===\ %f\ ===,%C%l:%c,%Z%m
4433 cexpr ["=== Xfile1 ===", "1:3", "errormsg"]
4434 call assert_equal('Xfile1', @%)
4435 call assert_equal([0, 1, 3, 0], getpos('.'))
4436
4422 enew | only 4437 enew | only
4423 set efm& 4438 set efm&
4424 call delete('Xfile1') 4439 call delete('Xfile1')
4425 endfunc 4440 endfunc
4426 4441