Mercurial > vim
changeset 7701:075810b0cb6c v7.4.1149
commit https://github.com/vim/vim/commit/d6357e8f93c50f984ffd69c3a0d247d8603f86c3
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 21 21:48:09 2016 +0100
patch 7.4.1149
Problem: Using the local value of 'errorformat' causes more problems than
it solves.
Solution: Revert 7.4.1013.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 21 Jan 2016 22:00:04 +0100 |
parents | 4d586e4be125 |
children | c000f1b8a3ce |
files | runtime/doc/quickfix.txt src/quickfix.c src/version.c |
diffstat | 3 files changed, 6 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/doc/quickfix.txt +++ b/runtime/doc/quickfix.txt @@ -217,9 +217,9 @@ command with 'l'. :cex[pr][!] {expr} Create a quickfix list using the result of {expr} and jump to the first error. If {expr} is a String, then each new-line terminated - line in the String is processed using the value - of 'errorformat' (buffer-local value if it was set) - and the result is added to the quickfix list. + line in the String is processed using the global value + of 'errorformat' and the result is added to the + quickfix list. If {expr} is a List, then each String item in the list is processed and added to the quickfix list. Non String items in the List are ignored.
--- a/src/quickfix.c +++ b/src/quickfix.c @@ -4230,10 +4230,7 @@ ex_cexpr(eap) if ((tv->v_type == VAR_STRING && tv->vval.v_string != NULL) || (tv->v_type == VAR_LIST && tv->vval.v_list != NULL)) { - 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, + if (qf_init_ext(qi, NULL, NULL, tv, p_efm, (eap->cmdidx != CMD_caddexpr && eap->cmdidx != CMD_laddexpr), (linenr_T)0, (linenr_T)0, *eap->cmdlinep) > 0