Skip to content

Commit d6357e8

Browse files
committed
patch 7.4.1149
Problem: Using the local value of 'errorformat' causes more problems than it solves. Solution: Revert 7.4.1013.
1 parent e5f2be6 commit d6357e8

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

runtime/doc/quickfix.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,9 @@ command with 'l'.
217217
:cex[pr][!] {expr} Create a quickfix list using the result of {expr} and
218218
jump to the first error.
219219
If {expr} is a String, then each new-line terminated
220-
line in the String is processed using the value
221-
of 'errorformat' (buffer-local value if it was set)
222-
and the result is added to the quickfix list.
220+
line in the String is processed using the global value
221+
of 'errorformat' and the result is added to the
222+
quickfix list.
223223
If {expr} is a List, then each String item in the list
224224
is processed and added to the quickfix list. Non
225225
String items in the List are ignored.

src/quickfix.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4230,10 +4230,7 @@ ex_cexpr(eap)
42304230
if ((tv->v_type == VAR_STRING && tv->vval.v_string != NULL)
42314231
|| (tv->v_type == VAR_LIST && tv->vval.v_list != NULL))
42324232
{
4233-
char_u *efm = *curwin->w_buffer->b_p_efm == NUL ? p_efm
4234-
: curwin->w_buffer->b_p_efm;
4235-
4236-
if (qf_init_ext(qi, NULL, NULL, tv, efm,
4233+
if (qf_init_ext(qi, NULL, NULL, tv, p_efm,
42374234
(eap->cmdidx != CMD_caddexpr
42384235
&& eap->cmdidx != CMD_laddexpr),
42394236
(linenr_T)0, (linenr_T)0, *eap->cmdlinep) > 0

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
1149,
744746
/**/
745747
1148,
746748
/**/

0 commit comments

Comments
 (0)