Mercurial > vim
comparison src/quickfix.c @ 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 | e82579016863 |
comparison
equal
deleted
inserted
replaced
22644:1b7f6ac87280 | 22645:13904ca59f96 |
---|---|
1360 qfprev->qf_type = fields->type; | 1360 qfprev->qf_type = fields->type; |
1361 | 1361 |
1362 if (!qfprev->qf_lnum) | 1362 if (!qfprev->qf_lnum) |
1363 qfprev->qf_lnum = fields->lnum; | 1363 qfprev->qf_lnum = fields->lnum; |
1364 if (!qfprev->qf_col) | 1364 if (!qfprev->qf_col) |
1365 { | |
1365 qfprev->qf_col = fields->col; | 1366 qfprev->qf_col = fields->col; |
1366 qfprev->qf_viscol = fields->use_viscol; | 1367 qfprev->qf_viscol = fields->use_viscol; |
1368 } | |
1367 if (!qfprev->qf_fnum) | 1369 if (!qfprev->qf_fnum) |
1368 qfprev->qf_fnum = qf_get_fnum(qfl, | 1370 qfprev->qf_fnum = qf_get_fnum(qfl, |
1369 qfl->qf_directory, | 1371 qfl->qf_directory, |
1370 *fields->namebuf || qfl->qf_directory != NULL | 1372 *fields->namebuf || qfl->qf_directory != NULL |
1371 ? fields->namebuf | 1373 ? fields->namebuf |