Mercurial > vim
changeset 9945:d63a89b526ea v7.4.2246
commit https://github.com/vim/vim/commit/d6f2ee32dcfa18c781ef157918b524318a2215a2
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 24 00:30:52 2016 +0200
patch 7.4.2246
Problem: Oldfiles test fails.
Solution: Include missing changes.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 24 Aug 2016 00:45:05 +0200 |
parents | ff39af40ed2b |
children | 1617ed2bd4ef |
files | src/ex_cmds.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -8456,34 +8456,19 @@ ex_oldfiles(exarg_T *eap UNUSED) list_T *l = get_vim_var_list(VV_OLDFILES); listitem_T *li; int nr = 0; - char_u *reg_pat = NULL; char_u *fname; - regmatch_T regmatch; if (l == NULL) msg((char_u *)_("No old files")); else { - if (*eap->arg != NUL) - { - if (skip_vimgrep_pat(eap->arg, ®_pat, NULL) == NULL) - { - EMSG(_(e_invalpat)); - return; - } - regmatch.regprog = vim_regcomp(reg_pat, p_magic ? RE_MAGIC : 0); - if (regmatch.regprog == NULL) - return; - } - msg_start(); msg_scroll = TRUE; for (li = l->lv_first; li != NULL && !got_int; li = li->li_next) { ++nr; fname = get_tv_string(&li->li_tv); - if (reg_pat == NULL || *reg_pat == NUL - || vim_regexec(®match, fname, (colnr_T)0)) + if (!message_filtered(fname)) { msg_outnum((long)nr); MSG_PUTS(": "); @@ -8493,8 +8478,6 @@ ex_oldfiles(exarg_T *eap UNUSED) ui_breakcheck(); } } - if (*eap->arg != NUL) - vim_regfree(regmatch.regprog); /* Assume "got_int" was set to truncate the listing. */ got_int = FALSE;