1
0
forked from aniani/vim

patch 7.4.1013

Problem:    The local value of 'errorformat' is not used for ":lexpr" and
            ":cexpr".
Solution:   Use the local value if it exists. (Christian Brabandt) Adjust the
            help for this.
This commit is contained in:
Bram Moolenaar
2015-12-31 21:19:49 +01:00
parent 1000565c3a
commit 9b05a0d0f9
3 changed files with 10 additions and 5 deletions

View File

@@ -4230,7 +4230,10 @@ ex_cexpr(eap)
if ((tv->v_type == VAR_STRING && tv->vval.v_string != NULL)
|| (tv->v_type == VAR_LIST && tv->vval.v_list != NULL))
{
if (qf_init_ext(qi, NULL, NULL, tv, p_efm,
char_u *efm = *curwin->w_buffer->b_p_efm == NUL ? p_efm
: curwin->w_buffer->b_p_efm;
if (qf_init_ext(qi, NULL, NULL, tv, efm,
(eap->cmdidx != CMD_caddexpr
&& eap->cmdidx != CMD_laddexpr),
(linenr_T)0, (linenr_T)0, *eap->cmdlinep) > 0